diff options
| author | Stefan Monnier | 2001-04-25 15:52:45 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2001-04-25 15:52:45 +0000 |
| commit | 1dc64fca5b9e64b79d8839ccc36cdd1c7fb48371 (patch) | |
| tree | 0f71e764d818bd31b66e9ba4834c7c9884d98f6b | |
| parent | 7cd512f22f12d22e29a35aafceab613e5aefadee (diff) | |
| download | emacs-1dc64fca5b9e64b79d8839ccc36cdd1c7fb48371.tar.gz emacs-1dc64fca5b9e64b79d8839ccc36cdd1c7fb48371.zip | |
(makefile-font-lock-keywords):
Rationalize the rules for includes and conditionals and use the
keyword face for them.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/progmodes/make-mode.el | 21 |
2 files changed, 10 insertions, 15 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f22a1d6e597..8731007e990 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2001-04-25 Stefan Monnier <monnier@cs.yale.edu> | 1 | 2001-04-25 Stefan Monnier <monnier@cs.yale.edu> |
| 2 | 2 | ||
| 3 | * progmodes/make-mode.el (makefile-font-lock-keywords): | ||
| 4 | Rationalize the rules for includes and conditionals and use the | ||
| 5 | keyword face for them. | ||
| 6 | |||
| 3 | * faces.el (modify-face): Add compatibility for non-interactive use. | 7 | * faces.el (modify-face): Add compatibility for non-interactive use. |
| 4 | 8 | ||
| 5 | 2001-04-24 John Wiegley <johnw@gnu.org> | 9 | 2001-04-24 John Wiegley <johnw@gnu.org> |
diff --git a/lisp/progmodes/make-mode.el b/lisp/progmodes/make-mode.el index 72e2e863a76..8e5948661c0 100644 --- a/lisp/progmodes/make-mode.el +++ b/lisp/progmodes/make-mode.el | |||
| @@ -278,21 +278,12 @@ not be enclosed in { } or ( )." | |||
| 278 | 278 | ||
| 279 | ;; Fontify conditionals and includes. | 279 | ;; Fontify conditionals and includes. |
| 280 | ;; Note that plain `if' is an automake conditional, and not a bug. | 280 | ;; Note that plain `if' is an automake conditional, and not a bug. |
| 281 | '("^[ \t]*\\(-?include\\|if\\(n?eq\\|n?def\\)?\\)[ \t]+\\([^: \t\n#]+\\)" | 281 | (list |
| 282 | (1 font-lock-warning-face) (3 font-lock-variable-name-face)) | 282 | (concat "^\\(?: [ \t]*\\)?" |
| 283 | 283 | (regexp-opt '("-include" "-sinclude" "include" "sinclude" "ifeq" | |
| 284 | ;; Fontify endif and else. | 284 | "if" "ifneq" "ifdef" "ifndef" "endif" "else") t) |
| 285 | '("^[ \t]*\\(else\\|endif\\)[ \t]*\\(#.*$\\)?" | 285 | "\\>[ \t]*\\([^: \t\n#]*\\)") |
| 286 | (1 font-lock-warning-face)) | 286 | '(1 font-lock-keyword-face) '(2 font-lock-variable-name-face)) |
| 287 | |||
| 288 | ;; Fontify conditionals and includes. | ||
| 289 | ;; Note that plain `if' is an automake conditional, and not a bug. | ||
| 290 | '("^[ \t]*\\(-?include\\|if\\(n?eq\\|n?def\\)?\\)[ \t]+\\([^: \t\n#]+\\)" | ||
| 291 | (1 font-lock-reference-face) (3 font-lock-variable-name-face)) | ||
| 292 | |||
| 293 | ;; Fontify endif and else. | ||
| 294 | '("^[ \t]*\\(else\\|endif\\)[ \t]*\\(#.*$\\)?" | ||
| 295 | (1 font-lock-reference-face)) | ||
| 296 | 287 | ||
| 297 | ;; Highlight lines that contain just whitespace. | 288 | ;; Highlight lines that contain just whitespace. |
| 298 | ;; They can cause trouble, especially if they start with a tab. | 289 | ;; They can cause trouble, especially if they start with a tab. |