aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/cc-fonts.el
diff options
context:
space:
mode:
authorDaniel Pfeiffer <[email protected]>2005-05-05 19:02:47 +0000
committerDaniel Pfeiffer <[email protected]>2005-05-05 19:02:47 +0000
commitbd8cf50578f961281c68cea763a3ab737e1ff248 (patch)
tree30dd48224c8aef1738d69e6e1940cb2cede186b5 /lisp/progmodes/cc-fonts.el
parent5d27cf9f35064c6472b29eec3aa747f315bf167e (diff)
(c-cpp-matchers): Use font-lock-negation-char-face.
Diffstat (limited to 'lisp/progmodes/cc-fonts.el')
-rw-r--r--lisp/progmodes/cc-fonts.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/lisp/progmodes/cc-fonts.el b/lisp/progmodes/cc-fonts.el
index 8ca47af91f..74efef4133 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)