]> code.delx.au - gnu-emacs/blobdiff - lisp/progmodes/cc-langs.el
Java Mode: Fontify identifiers in the presence of annotations.
[gnu-emacs] / lisp / progmodes / cc-langs.el
index 08d84fbb625911ecd5505ab24aab2a2cff4f0d76..b52da3f662d1e5474095254904e3a0099cfb2951 100644 (file)
@@ -3251,6 +3251,19 @@ way."
   objc t)
 (c-lang-defvar c-type-decl-end-used (c-lang-const c-type-decl-end-used))
 
+(c-lang-defconst c-maybe-decl-faces
+  "List of faces that might be put at the start of a type when
+`c-font-lock-declarations' runs.  This must be evaluated (with `eval') at
+runtime to get the actual list of faces.  This ensures that face name
+aliases in Emacs are resolved."
+  t '(list nil
+          font-lock-type-face
+          c-reference-face-name
+          font-lock-keyword-face)
+  java (append (c-lang-const c-maybe-decl-faces)
+              '(font-lock-preprocessor-face)))
+(c-lang-defvar c-maybe-decl-faces (c-lang-const c-maybe-decl-faces))
+
 \f
 ;;; Wrap up the `c-lang-defvar' system.