]> code.delx.au - gnu-emacs/commit
Guard against nested percent literals
authorDmitry Gutov <dgutov@yandex.ru>
Mon, 7 Mar 2016 00:58:49 +0000 (02:58 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Mon, 7 Mar 2016 03:07:34 +0000 (05:07 +0200)
commit6e63b3e997e1ac2fa9b58f0d2edeca3cd83628f2
tree80fe9ca13285f52d56c6c2a677001fe36d5ad884
parent066f3bc3f3d024b2e10ee11e09ae6aaa1003bbda
Guard against nested percent literals

* lisp/progmodes/ruby-mode.el
(ruby-syntax-propertize-percent-literal):
Don't check the syntax status.
(ruby-syntax-propertize): Check it here.  And also guard against
being in a larger percent literal.

* test/automated/ruby-mode-tests.el
(ruby-no-nested-percent-literals): New test.
lisp/progmodes/ruby-mode.el
test/automated/ruby-mode-tests.el