Commit 18d801db authored by Dmitry Gutov's avatar Dmitry Gutov
Browse files

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

  nested constants, too.  \_< broke that.
parent a324b8c7
......@@ -4,6 +4,8 @@
checks made superfluous by the \_< operator.
* progmodes/ruby-mode.el (ruby-move-to-block): Work with (maybe
temporarily) broken indentation.
* progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight
nested constants, too. \_< broke that.
 
2013-01-27 Nobuyoshi Nakada <nobu@ruby-lang.org>
 
......
......@@ -1613,7 +1613,7 @@ See `font-lock-syntax-table'.")
'("\\(\\$\\|@\\|@@\\)\\(\\w\\|_\\)+"
0 font-lock-variable-name-face)
;; constants
'("\\_<\\([A-Z]+\\(\\w\\|_\\)*\\)"
'("\\(?:\\_<\\|::\\)\\([A-Z]+\\(\\w\\|_\\)*\\)"
1 font-lock-type-face)
'("\\(^\\s *\\|[\[\{\(,]\\s *\\|\\sw\\s +\\)\\(\\(\\sw\\|_\\)+\\):[^:]" 2 font-lock-constant-face)
;; expression expansion
......
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