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
|
|
@ -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