[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r111614: * progmodes/ruby-mode.el (ru
From: |
Dmitry Gutov |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r111614: * progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight |
Date: |
Mon, 28 Jan 2013 06:07:42 +0400 |
User-agent: |
Bazaar (2.5.0) |
------------------------------------------------------------
revno: 111614
committer: Dmitry Gutov <address@hidden>
branch nick: trunk
timestamp: Mon 2013-01-28 06:07:42 +0400
message:
* progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight
nested constants, too. \_< broke that.
modified:
lisp/ChangeLog
lisp/progmodes/ruby-mode.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog 2013-01-28 01:20:42 +0000
+++ b/lisp/ChangeLog 2013-01-28 02:07:42 +0000
@@ -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 <address@hidden>
=== modified file 'lisp/progmodes/ruby-mode.el'
--- a/lisp/progmodes/ruby-mode.el 2013-01-28 01:20:42 +0000
+++ b/lisp/progmodes/ruby-mode.el 2013-01-28 02:07:42 +0000
@@ -1613,7 +1613,7 @@
'("\\(\\$\\|@\\|@@\\)\\(\\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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r111614: * progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight,
Dmitry Gutov <=