* lisp/progmodes/ruby-mode.el (ruby-syntax-expansion-allowed-p): New
authorDmitry Gutov <dgutov@yandex.ru>
Fri, 31 May 2013 06:04:33 +0000 (10:04 +0400)
committerDmitry Gutov <dgutov@yandex.ru>
Fri, 31 May 2013 06:04:33 +0000 (10:04 +0400)
commit19bb8e629352f9438e95e62559bf73940cd3d885
treee3961dcd8917d9bd15873252ac0c87534119cac5
parentfc186a96df6853da2a94b76b40b6f3f8b24e52ac
* lisp/progmodes/ruby-mode.el (ruby-syntax-expansion-allowed-p): New
function, checks if expression expansion is allowed in given parse
state.
(ruby-syntax-propertize-expansion): Use it.
(ruby-syntax-propertize-function): Bind `case-fold-search' to nil
around the body.

* test/automated/ruby-mode-tests.el: New tests, for percent literals
and expression expansion.
lisp/ChangeLog
lisp/progmodes/ruby-mode.el
test/ChangeLog
test/automated/ruby-mode-tests.el