]> git.eshelyaron.com Git - emacs.git/commitdiff
* progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight
authorDmitry Gutov <dgutov@yandex.ru>
Mon, 28 Jan 2013 02:07:42 +0000 (06:07 +0400)
committerDmitry Gutov <dgutov@yandex.ru>
Mon, 28 Jan 2013 02:07:42 +0000 (06:07 +0400)
  nested constants, too.  \_< broke that.

lisp/ChangeLog
lisp/progmodes/ruby-mode.el

index 7b37b3d21b3dddf2a95850f2f3b70df6d3188547..3e527860c8dad4810443c879d740cdb67d9a7a1d 100644 (file)
@@ -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>
 
index 2c8a5ee4a13d8f4b66707e8a403300ac0d99493e..19d1ffe0a3bfae91cbe987dc230eb25d3a658d36 100644 (file)
@@ -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