Commit 56f75efc authored by Dmitry Gutov's avatar Dmitry Gutov
Browse files

* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight more

keywords and built-ins.
parent db7863f4
2013-07-03 Dmitry Gutov <>
* progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight more
keywords and built-ins.
2013-07-03 Glenn Morris <>
* subr.el (y-or-n-p): Handle empty prompts. (Bug#14770)
......@@ -1762,31 +1762,67 @@ See `font-lock-syntax-table'.")
;; keyword-like methods on Kernel and Module
;; built-in methods on Kernel
;; keyword-like private methods on Module
......@@ -1794,12 +1830,16 @@ See `font-lock-syntax-table'.")
'(if (match-beginning 4)
;; Perl-ish keywords
;; here-doc beginnings
`(,ruby-here-doc-beg-re 0 (unless (ruby-singleton-class-p (match-beginning 0))
;; variables
2 font-lock-variable-name-face)
;; keywords that evaluate to certain values
'("\\_<__\\(?:LINE\\|ENCODING\\|FILE\\)__\\_>" 0 font-lock-variable-name-face)
;; symbols
2 font-lock-constant-face)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment