diff options
| author | Juanma Barranquero | 2003-02-11 23:47:11 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2003-02-11 23:47:11 +0000 |
| commit | 61bc75ab6ca503e5be3b2736a5ce8e13f40f1722 (patch) | |
| tree | 0aab58d8c740410e5ec1ed86aab0a1036c224d6e | |
| parent | c47a201af79d6295c6bd21d0c563f1eeecef1a50 (diff) | |
| download | emacs-61bc75ab6ca503e5be3b2736a5ce8e13f40f1722.tar.gz emacs-61bc75ab6ca503e5be3b2736a5ce8e13f40f1722.zip | |
(makefile-font-lock-keywords): Fontify single character variable references, but
protect shell variables references.
(makefile-mode): Make `$' be punctuation in font-lock-defaults.
| -rw-r--r-- | lisp/ChangeLog | 11 | ||||
| -rw-r--r-- | lisp/progmodes/make-mode.el | 11 |
2 files changed, 16 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 661f697c045..9be8850740b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2003-02-12 Simon Marshall <simon@gnu.org> | ||
| 2 | |||
| 3 | * progmodes/make-mode.el (makefile-font-lock-keywords): Fontify | ||
| 4 | single character variable references, but protect shell variables | ||
| 5 | references. | ||
| 6 | (makefile-mode): Make `$' be punctuation in font-lock-defaults. | ||
| 7 | |||
| 1 | 2003-02-12 Ami Fischman <ami@fischman.org> | 8 | 2003-02-12 Ami Fischman <ami@fischman.org> |
| 2 | 9 | ||
| 3 | Face markup of calendar and diary displays: Any entry line that | 10 | Face markup of calendar and diary displays: Any entry line that |
| @@ -18,8 +25,8 @@ | |||
| 18 | (mark-visible-calendar-date): Add the ability to pass face | 25 | (mark-visible-calendar-date): Add the ability to pass face |
| 19 | attribute/value pairs in the mark argument. Handle the mark. | 26 | attribute/value pairs in the mark argument. Handle the mark. |
| 20 | 27 | ||
| 21 | * diary-lib.el (diary-attrtype-convert): Convert an attribute | 28 | * calendar/diary-lib.el (diary-attrtype-convert): Convert an |
| 22 | value string to the desired type. | 29 | attribute value string to the desired type. |
| 23 | (diary-pull-attrs): New function that pulls the attributes off a | 30 | (diary-pull-attrs): New function that pulls the attributes off a |
| 24 | diary entry, merges with file-global attributes, and returns | 31 | diary entry, merges with file-global attributes, and returns |
| 25 | the (possibly modified) entry and a list of attribute/values using | 32 | the (possibly modified) entry and a list of attribute/values using |
diff --git a/lisp/progmodes/make-mode.el b/lisp/progmodes/make-mode.el index 4d825f83239..98a3d460884 100644 --- a/lisp/progmodes/make-mode.el +++ b/lisp/progmodes/make-mode.el | |||
| @@ -268,13 +268,16 @@ not be enclosed in { } or ( )." | |||
| 268 | ;; Do dependencies. These get the function name face. | 268 | ;; Do dependencies. These get the function name face. |
| 269 | (list makefile-dependency-regex 1 'font-lock-function-name-face) | 269 | (list makefile-dependency-regex 1 'font-lock-function-name-face) |
| 270 | 270 | ||
| 271 | ;; Variable references even in targets/strings/comments: | 271 | ;; Variable references even in targets/strings/comments. |
| 272 | '("\\$[({]\\([-a-zA-Z0-9_.]+\\)[}):]" 1 font-lock-constant-face prepend) | 272 | '("\\$[({]\\([-a-zA-Z0-9_.]+\\)[}):]" 1 font-lock-constant-face prepend) |
| 273 | 273 | ||
| 274 | ;; Automatic variable references. | 274 | ;; Automatic variable references and single character variable references... |
| 275 | '("\\$\\([@%<?^+*]\\)" 1 font-lock-reference-face prepend) | 275 | '("\\$\\([@%<?^+*_]\\|[a-zA-Z0-9]\\>\\)" 1 font-lock-reference-face prepend) |
| 276 | '("\\$[({]\\([@%<?^+*][FD]?\\)[}):]" 1 font-lock-reference-face prepend) | 276 | '("\\$[({]\\([@%<?^+*][FD]?\\)[}):]" 1 font-lock-reference-face prepend) |
| 277 | 277 | ||
| 278 | ;; ...but not shell variables references. | ||
| 279 | '("\\$\\$\\(\\sw+\\)" 1 'default t) | ||
| 280 | |||
| 278 | ;; Fontify conditionals and includes. | 281 | ;; Fontify conditionals and includes. |
| 279 | ;; Note that plain `if' is an automake conditional, and not a bug. | 282 | ;; Note that plain `if' is an automake conditional, and not a bug. |
| 280 | (list | 283 | (list |
| @@ -586,7 +589,7 @@ Makefile mode can be configured by modifying the following variables: | |||
| 586 | ;; SYNTAX-BEGIN set to backward-paragraph to avoid slow-down | 589 | ;; SYNTAX-BEGIN set to backward-paragraph to avoid slow-down |
| 587 | ;; near the end of a large buffer, due to parse-partial-sexp's | 590 | ;; near the end of a large buffer, due to parse-partial-sexp's |
| 588 | ;; trying to parse all the way till the beginning of buffer. | 591 | ;; trying to parse all the way till the beginning of buffer. |
| 589 | '(makefile-font-lock-keywords nil nil nil backward-paragraph)) | 592 | '(makefile-font-lock-keywords nil nil ((?$ . ".")) backward-paragraph)) |
| 590 | 593 | ||
| 591 | ;; Add-log. | 594 | ;; Add-log. |
| 592 | (make-local-variable 'add-log-current-defun-function) | 595 | (make-local-variable 'add-log-current-defun-function) |