* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): End regexp for

nil/self/true/false with "end of symbol".
This commit is contained in:
Dmitry Gutov 2013-11-15 20:09:10 +02:00
parent 2fcc742fc5
commit 43cebc237c
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2013-11-15 Dmitry Gutov <dgutov@yandex.ru>
* progmodes/ruby-mode.el (ruby-font-lock-keywords): End regexp for
nil/self/true/false with "end of symbol".
2013-11-15 Bozhidar Batsov <bozhidar@batsov.com>
* subr.el (version-regexp-alist): Fix a typo.

View file

@ -1925,7 +1925,7 @@ See `font-lock-syntax-table'.")
"\\_<\\(?:BEGIN\\|END\\)\\_>\\|^__END__$"
;; Variables.
(,(concat ruby-font-lock-keyword-beg-re
"\\_<\\(nil\\|self\\|true\\|false\\)\\>")
"\\_<\\(nil\\|self\\|true\\|false\\)\\_>")
1 font-lock-variable-name-face)
;; Keywords that evaluate to certain values.
("\\_<__\\(?:LINE\\|ENCODING\\|FILE\\)__\\_>"