]> git.eshelyaron.com Git - emacs.git/commit
* lisp/progmodes/ruby-mode.el: Improve percent literals.
authorDmitry Gutov <dgutov@yandex.ru>
Tue, 14 Aug 2012 12:28:12 +0000 (08:28 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 14 Aug 2012 12:28:12 +0000 (08:28 -0400)
commite636fafe20f0238d0aaabc4b822642efe68cad9b
treee55e068aa5714d96fd180c4118156ffe8e83e98b
parent8e99d072be7ce8aff322d65dc87527c4118722f2
* lisp/progmodes/ruby-mode.el: Improve percent literals.
(ruby-percent-literal-beg-re): New constant.
(ruby-syntax-general-delimiters-goto-beg): Rename to
`ruby-syntax-enclosing-percent-literal', improve literal type check.
(ruby-syntax-propertize-general-delimiters): Rename to
`ruby-syntax-propertize-percent-literal', it's a shorter and more
popular term.  Adjust comments everywhere.
(ruby-syntax-propertize-percent-literal): Only propertize when not
inside a simple string or comment.  When the literal is unclosed,
leave the text after it unpropertized.

Fixes: debbugs:6286
lisp/ChangeLog
lisp/progmodes/ruby-mode.el