* lisp/progmodes/ruby-mode.el
authorDmitry Gutov <dgutov@yandex.ru>
Wed, 14 Nov 2012 12:17:21 +0000 (16:17 +0400)
committerDmitry Gutov <dgutov@yandex.ru>
Wed, 14 Nov 2012 12:17:21 +0000 (16:17 +0400)
commitc62792e7dfa403db8c36cb92f32fb69258a199ef
treeb66f89060cd2f882a04b508896cbbbd424b08412
parent710f581278f6eaea5dbc5c0bcc7c206be9690746
* lisp/progmodes/ruby-mode.el
(ruby-syntax-propertize-function): After everything else, search
for expansions in string literals, mark their insides as
whitespace syntax and save match data for font-lock.
(ruby-font-lock-keywords): Highlight just the 2nd group from
expression expansion matches.
(ruby-match-expression-expansion): Use the match data saved to the
text property in ruby-syntax-propertize-function.

* test/automated/ruby-mode-tests.el
Change direct font-lock face references to var references.
(ruby-interpolation-suppresses-syntax-inside): New test.
(ruby-interpolation-inside-percent-literal-with-paren): New
failing test.
lisp/ChangeLog
lisp/progmodes/ruby-mode.el
test/ChangeLog
test/automated/ruby-mode-tests.el