* lisp/progmodes/ruby-mode.el (ruby-move-to-block): Improve
authorDmitry Gutov <dgutov@yandex.ru>
Wed, 13 Feb 2013 08:15:05 +0000 (12:15 +0400)
committerDmitry Gutov <dgutov@yandex.ru>
Wed, 13 Feb 2013 08:15:05 +0000 (12:15 +0400)
commit7132e457ad3d5c6eec1c1eb78e1b7409d1fd5631
treea329e7edb289d109d1ecd909d4f43cbf7b3d068d
parent3c4a4b230388311d253e11787f2a9eb064056160
* lisp/progmodes/ruby-mode.el (ruby-move-to-block): Improve
performance.  Instead of recalculating indentation fully for each
line, sum up indentation depth based only on visited lines.
(ruby-parse-partial): Increase the depth after "do" even when END
is right after it.
(ruby-parse-partial): When END is in the middle of a percent
literal, increase the depth if the delimiter chars belong to the
paren syntax class.

* test/automated/ruby-mode-tests.el
(ruby-move-to-block-skips-percent-literal): New test.
lisp/ChangeLog
lisp/progmodes/ruby-mode.el
test/ChangeLog
test/automated/ruby-mode-tests.el