* lisp/progmodes/ruby-mode.el (ruby-indent-beg-re): Add pieces from
authorDmitry Gutov <dgutov@yandex.ru>
Fri, 7 Sep 2012 04:15:56 +0000 (08:15 +0400)
committerDmitry Gutov <dgutov@yandex.ru>
Fri, 7 Sep 2012 04:15:56 +0000 (08:15 +0400)
commit0ba2d4b6465b0b66d34e6ef47c151bd5920fbe54
treeadb7447fb81dd81374d12a3765716b8d60e01fe6
parent1d43a35f49f7403f7f50f36dddf88167a7c81f11
* lisp/progmodes/ruby-mode.el (ruby-indent-beg-re): Add pieces from
ruby-beginning-of-indent, simplify, allow all keywords to have
indentation before them.
(ruby-beginning-of-indent): Adjust for above.  Search until the
found point is not inside a string or comment.
(ruby-font-lock-keywords): Allow symbols to start with "@"
character, give them higher priority than variables.
(ruby-syntax-propertize-function)
(ruby-font-lock-syntactic-keywords): Remove the "not comments"
matchers.  Expression expansions are not comments when inside a
string, and there comment syntax status is irrelevant.
(ruby-match-expression-expansion): New function.  Check that
expression expansion is inside a string, and it's not escaped.
(ruby-font-lock-keywords): Use it.

* test/automated/ruby-mode-tests.el: New tests (Bug#11613).
lisp/ChangeLog
lisp/progmodes/ruby-mode.el
test/ChangeLog
test/automated/ruby-mode-tests.el