Fixup the "normal" matcher; highlight global var symbols, too
* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight operator name symbols with the "normal" matcher (it actually needed updating). Highlight global variable symbols, too.
This commit is contained in:
parent
413e73b5db
commit
26f9c5075f
1 changed files with 2 additions and 2 deletions
|
@ -2173,7 +2173,7 @@ See `font-lock-syntax-table'.")
|
||||||
'font-lock-string-face)))
|
'font-lock-string-face)))
|
||||||
;; Perl-ish keywords.
|
;; Perl-ish keywords.
|
||||||
"\\_<\\(?:BEGIN\\|END\\)\\_>\\|^__END__$"
|
"\\_<\\(?:BEGIN\\|END\\)\\_>\\|^__END__$"
|
||||||
;; Variables.
|
;; Singleton objects.
|
||||||
(,(concat ruby-font-lock-keyword-beg-re
|
(,(concat ruby-font-lock-keyword-beg-re
|
||||||
"\\_<\\(nil\\|true\\|false\\)\\_>")
|
"\\_<\\(nil\\|true\\|false\\)\\_>")
|
||||||
1 font-lock-constant-face)
|
1 font-lock-constant-face)
|
||||||
|
@ -2181,7 +2181,7 @@ See `font-lock-syntax-table'.")
|
||||||
("\\_<__\\(?:LINE\\|ENCODING\\|FILE\\)__\\_>"
|
("\\_<__\\(?:LINE\\|ENCODING\\|FILE\\)__\\_>"
|
||||||
(0 font-lock-builtin-face))
|
(0 font-lock-builtin-face))
|
||||||
;; Symbols.
|
;; Symbols.
|
||||||
("\\(^\\|[^:]\\)\\(:@?\\(?:\\w\\|_\\)+\\)\\([!?=]\\)?"
|
("\\(^\\|[^:]\\)\\(:@\\{0,2\\}\\(?:\\sw\\|\\s_\\)+\\)"
|
||||||
(2 font-lock-constant-face)
|
(2 font-lock-constant-face)
|
||||||
(3 (unless (and (eq (char-before (match-end 3)) ?=)
|
(3 (unless (and (eq (char-before (match-end 3)) ?=)
|
||||||
(eq (char-after (match-end 3)) ?>))
|
(eq (char-after (match-end 3)) ?>))
|
||||||
|
|
Loading…
Add table
Reference in a new issue