changeset 62079:bd033c2d7fd4

(c-cpp-matchers): Use font-lock-negation-char-face.
author Daniel Pfeiffer <occitan@esperanto.org>
date Thu, 05 May 2005 19:02:47 +0000
parents 82c979abe63f
children 2922c607db05
files lisp/progmodes/cc-fonts.el
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)