]> code.delx.au - gnu-emacs/commit
* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-function):
authorDmitry Gutov <dgutov@yandex.ru>
Fri, 14 Dec 2012 06:58:15 +0000 (10:58 +0400)
committerDmitry Gutov <dgutov@yandex.ru>
Fri, 14 Dec 2012 06:58:15 +0000 (10:58 +0400)
commitbb808526ae2847f1e9aa6559835da2a10545a273
tree98fea65f31b2de5192163bea1d25beab29cb5044
parentdbb530d9887fd51de9f8e338b325537d9eac0a3a
* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-function):
Extract `ruby-syntax-propertize-expansions'.
(ruby-syntax-propertize-expansions): Only change syntax on
certain string delimiters, to punctuation.  This way the common
functions like forward-word and thing-at-point still work.
(ruby-match-expression-expansion): Improve readability.
(ruby-block-contains-point): New function.
(ruby-add-log-current-method): Handle several edge cases.

* test/automated/ruby-mode-tests.el
Rename one interpolation test; add three more.
(ruby-with-temp-buffer): New macro, use it where appropriate.
(ruby-add-log-current-method-examples): Use "_" for target point.
Add four tests for ruby-add-log-current-method.
lisp/ChangeLog
lisp/progmodes/ruby-mode.el
test/ChangeLog
test/automated/ruby-mode-tests.el