mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
* progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight
nested constants, too. \_< broke that.
This commit is contained in:
parent
a324b8c791
commit
18d801db79
2 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue