]> git.eshelyaron.com Git - emacs.git/commit
Propertize operator symbol names with symbol syntax class
authorDmitry Gutov <dgutov@yandex.ru>
Wed, 9 Mar 2016 14:43:51 +0000 (16:43 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Wed, 9 Mar 2016 15:22:56 +0000 (17:22 +0200)
commit1b9d6163b023aaefd15d38ea28e968a113202402
tree7a1823db56e0f353388a7c25ae03a6824bfb1a88
parent9b16bc2a01a3554feb9577c507bcc874f863ad81
Propertize operator symbol names with symbol syntax class

* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize):
Do it here.
(ruby-font-lock-keywords): Instead of handling them here.  Leave
highlighting them to the "normal" matcher, because now we can.
(ruby-smie--forward-token, ruby-smie--backward-token):
Likewise, don't special-case operator symbols anymore.
(ruby-smie--args-separator-p): Simplify the regexp, match operator
names with \s_.
(ruby-smie--implicit-semi-p): Handle the special cases of ? and =
at EOL the same way: check if the character has been assigned the
symbol syntax class by syntax-propertize.
lisp/progmodes/ruby-mode.el
test/indent/ruby.rb