# HG changeset patch # User Daniel Pfeiffer # Date 1115319767 0 # Node ID bd033c2d7fd4b5916b9ae86a1876535be1deeb52 # Parent 82c979abe63fcfec0f1c01156d1cf41799ea4d51 (c-cpp-matchers): Use font-lock-negation-char-face. diff -r 82c979abe63f -r bd033c2d7fd4 lisp/progmodes/cc-fonts.el --- a/lisp/progmodes/cc-fonts.el Thu May 05 19:01:39 2005 +0000 +++ b/lisp/progmodes/cc-fonts.el Thu May 05 19:02:47 2005 +0000 @@ -495,6 +495,12 @@ "[" (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 @@ (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)