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:
parent
271c888a35
commit
abdcf1fb2c
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user