]> git.eshelyaron.com Git - emacs.git/commitdiff
(c-cpp-matchers): Use font-lock-negation-char-face.
authorDaniel Pfeiffer <occitan@esperanto.org>
Thu, 5 May 2005 19:02:47 +0000 (19:02 +0000)
committerDaniel Pfeiffer <occitan@esperanto.org>
Thu, 5 May 2005 19:02:47 +0000 (19:02 +0000)
lisp/progmodes/cc-fonts.el

index 8ca47af91f435f374b38997d863bdd54b8806d17..74efef4133fd70698138f6bb3a701e5f37e604df 100644 (file)
@@ -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)