1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-18 10:16:51 +00:00

(makefile-font-lock-keywords): Improve highlighting

of variable references inside other highlighted regions.
This commit is contained in:
Richard M. Stallman 1996-01-26 19:30:42 +00:00
parent 271c888a35
commit abdcf1fb2c

View File

@ -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.