From: Daniel Pfeiffer Date: Thu, 5 May 2005 19:07:39 +0000 (+0000) Subject: (makefile-font-lock-keywords): Use font-lock-negation-char-face. X-Git-Tag: ttn-vms-21-2-B4~526 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=10f518f703a7e78918ebe96cefcf40ecd54f234a;p=emacs.git (makefile-font-lock-keywords): Use font-lock-negation-char-face. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e888712a4c2..82dbac5557e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,16 @@ +2005-05-05 Daniel Pfeiffer + + * font-lock.el (font-lock-negation-char-face): New face and + variable. + + * progmodes/cc-fonts.el (c-cpp-matchers): Use it. + + * progmodes/sh-script.el (sh-font-lock-keywords): Use it. + + * progmodes/cperl-mode.el (cperl-init-faces): Use it. + + * progmodes/make-mode.el (makefile-font-lock-keywords): Use it. + 2005-05-05 Juanma Barranquero * emacs-lisp/byte-run.el (define-obsolete-function-alias): Fix diff --git a/lisp/progmodes/make-mode.el b/lisp/progmodes/make-mode.el index 99138444f7c..7c1ccb25fb0 100644 --- a/lisp/progmodes/make-mode.el +++ b/lisp/progmodes/make-mode.el @@ -47,7 +47,7 @@ ;; prerequisites. ;; ;; The command C-c C-b pops up a browser window listing all target and -;; macro names. You can mark or unmark items wit C-c SPC, and insert +;; macro names. You can mark or unmark items with C-c SPC, and insert ;; all marked items back in the Makefile with C-c TAB. ;; ;; The command C-c TAB in the makefile buffer inserts a GNU make builtin. @@ -284,6 +284,9 @@ not be enclosed in { } or ( )." "\\>[ \t]*\\([^: \t\n#]*\\)") '(1 font-lock-keyword-face) '(2 font-lock-variable-name-face)) + '("^\\(?: [ \t]*\\)?if\\(n\\)\\(?:def\\|eq\\)\\>" + 1 font-lock-negation-char-face prepend) + ;; Highlight lines that contain just whitespace. ;; They can cause trouble, especially if they start with a tab. '("^[ \t]+$" . makefile-space-face)