diff options
| author | Richard M. Stallman | 1996-01-26 19:30:42 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-01-26 19:30:42 +0000 |
| commit | abdcf1fb2c3ff6a081d58e811ace5ba43fb0cd98 (patch) | |
| tree | 374d5d0997d4e13888bf754a80cceda1be0f1341 | |
| parent | 271c888a358af617b3ac79e9034c0bebbda2f64d (diff) | |
| download | emacs-abdcf1fb2c3ff6a081d58e811ace5ba43fb0cd98.tar.gz emacs-abdcf1fb2c3ff6a081d58e811ace5ba43fb0cd98.zip | |
(makefile-font-lock-keywords): Improve highlighting
of variable references inside other highlighted regions.
| -rw-r--r-- | lisp/progmodes/make-mode.el | 4 |
1 files changed, 2 insertions, 2 deletions
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 ( ).") | |||
| 214 | (list makefile-macroassign-regex 1 'font-lock-variable-name-face) | 214 | (list makefile-macroassign-regex 1 'font-lock-variable-name-face) |
| 215 | ;; | 215 | ;; |
| 216 | ;; Variable references even in targets/strings/comments: | 216 | ;; Variable references even in targets/strings/comments: |
| 217 | '("\\$[({]\\([a-zA-Z0-9_]+\\)[})]" 1 font-lock-reference-face t) | 217 | '("\\$[({]\\([a-zA-Z0-9_]+\\)[})]" 1 font-lock-reference-face prepend) |
| 218 | ;; | 218 | ;; |
| 219 | ;; Do dependencies. These get the function name face. | 219 | ;; Do dependencies. These get the function name face. |
| 220 | (list makefile-dependency-regex 1 'font-lock-function-name-face) | 220 | (list makefile-dependency-regex 1 'font-lock-function-name-face 'prepend) |
| 221 | 221 | ||
| 222 | ;; Highlight lines that contain just whitespace. | 222 | ;; Highlight lines that contain just whitespace. |
| 223 | ;; They can cause trouble, especially if they start with a tab. | 223 | ;; They can cause trouble, especially if they start with a tab. |