]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix last occurrence of `font-lock-reference-face`
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 16 Sep 2022 18:26:13 +0000 (14:26 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 16 Sep 2022 18:26:13 +0000 (14:26 -0400)
Well... except for CC-mode.

* lisp/cedet/semantic/grammar.el (semantic-grammar-mode-keywords-1):
Redirect reference to obsolete `font-lock-reference-face` to
`font-lock-constant-face`.

lisp/cedet/semantic/grammar.el

index d42022e042318664ea22e730c9ce48c762eb8b46..72037f471081b45fae9785f790a3c1a2df6ba4d8 100644 (file)
@@ -1148,9 +1148,9 @@ END is the limit of the search."
 
 (defvar semantic-grammar-mode-keywords-1
   `(("\\(\\<%%\\>\\|\\<%[{}]\\)"
-     0 font-lock-reference-face)
+     0 font-lock-constant-face)
     ("\\(%\\)\\(\\(\\sw\\|\\s_\\)+\\)"
-     (1 font-lock-reference-face)
+     (1 font-lock-constant-face)
      (2 font-lock-keyword-face))
     ("\\<error\\>"
      0 (unless (semantic-grammar-in-lisp-p) 'bold))
@@ -1167,7 +1167,8 @@ END is the limit of the search."
     (,semantic-grammar-lex-c-char-re
      0 ,(if (boundp 'font-lock-constant-face)
             'font-lock-constant-face
-          'font-lock-string-face) t)
+          'font-lock-string-face)
+     t)
     ;; Must highlight :keyword here, because ':' is a punctuation in
     ;; grammar mode!
     ("[\r\n\t ]+:\\sw+\\>"