From bd8cf50578f961281c68cea763a3ab737e1ff248 Mon Sep 17 00:00:00 2001 From: Daniel Pfeiffer Date: Thu, 5 May 2005 19:02:47 +0000 Subject: [PATCH] (c-cpp-matchers): Use font-lock-negation-char-face. --- lisp/progmodes/cc-fonts.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lisp/progmodes/cc-fonts.el b/lisp/progmodes/cc-fonts.el index 8ca47af91f4..74efef4133f 100644 --- a/lisp/progmodes/cc-fonts.el +++ b/lisp/progmodes/cc-fonts.el @@ -495,6 +495,12 @@ stuff. Used on level 1 and higher." "[" (c-lang-const c-symbol-chars) "]+" "\\)") `(,(1+ ncle-depth) c-preprocessor-face-name t))) + + ;; fontify the n in ifndef + (,(concat noncontinued-line-end + (c-lang-const c-opt-cpp-prefix) + "if\\(n\\)def\\>") + ,(+ ncle-depth 1) font-lock-negation-char-face prepend) ))) ,@(when (c-major-mode-is 'pike-mode) @@ -666,6 +672,8 @@ casts and declarations are fontified. Used on level 2 and higher." (narrow-to-region (point-min) limit) (c-font-lock-objc-iip-decl))) nil)))))) + + ("!" . font-lock-negation-char-face) )) (defun c-font-lock-complex-decl-prepare (limit) -- 2.39.2