From: Stefan Monnier Date: Fri, 16 Sep 2022 18:26:13 +0000 (-0400) Subject: Fix last occurrence of `font-lock-reference-face` X-Git-Tag: emacs-29.0.90~1856^2~440 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=dc5c8274409fe37199fa20659b55a40b1e47928a;p=emacs.git Fix last occurrence of `font-lock-reference-face` 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`. --- diff --git a/lisp/cedet/semantic/grammar.el b/lisp/cedet/semantic/grammar.el index d42022e0423..72037f47108 100644 --- a/lisp/cedet/semantic/grammar.el +++ b/lisp/cedet/semantic/grammar.el @@ -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)) ("\\" 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+\\>"