From: Richard M. Stallman Date: Fri, 26 Jan 1996 19:30:42 +0000 (+0000) Subject: (makefile-font-lock-keywords): Improve highlighting X-Git-Tag: emacs-19.34~1485 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=abdcf1fb2c3ff6a081d58e811ace5ba43fb0cd98;p=emacs.git (makefile-font-lock-keywords): Improve highlighting of variable references inside other highlighted regions. --- diff --git a/lisp/progmodes/make-mode.el b/lisp/progmodes/make-mode.el index cabc112e934..3a4ddff5bf8 100644 --- a/lisp/progmodes/make-mode.el +++ b/lisp/progmodes/make-mode.el @@ -214,10 +214,10 @@ not be enclosed in { } or ( ).") (list makefile-macroassign-regex 1 'font-lock-variable-name-face) ;; ;; Variable references even in targets/strings/comments: - '("\\$[({]\\([a-zA-Z0-9_]+\\)[})]" 1 font-lock-reference-face t) + '("\\$[({]\\([a-zA-Z0-9_]+\\)[})]" 1 font-lock-reference-face prepend) ;; ;; Do dependencies. These get the function name face. - (list makefile-dependency-regex 1 'font-lock-function-name-face) + (list makefile-dependency-regex 1 'font-lock-function-name-face 'prepend) ;; Highlight lines that contain just whitespace. ;; They can cause trouble, especially if they start with a tab.