268 |
;; Do dependencies. These get the function name face. |
;; Do dependencies. These get the function name face. |
269 |
(list makefile-dependency-regex 1 'font-lock-function-name-face) |
(list makefile-dependency-regex 1 'font-lock-function-name-face) |
270 |
|
|
271 |
;; Variable references even in targets/strings/comments: |
;; Variable references even in targets/strings/comments. |
272 |
'("\\$[({]\\([-a-zA-Z0-9_.]+\\)[}):]" 1 font-lock-constant-face prepend) |
'("\\$[({]\\([-a-zA-Z0-9_.]+\\)[}):]" 1 font-lock-constant-face prepend) |
273 |
|
|
274 |
;; Automatic variable references. |
;; Automatic variable references and single character variable references... |
275 |
'("\\$\\([@%<?^+*]\\)" 1 font-lock-reference-face prepend) |
'("\\$\\([@%<?^+*_]\\|[a-zA-Z0-9]\\>\\)" 1 font-lock-reference-face prepend) |
276 |
'("\\$[({]\\([@%<?^+*][FD]?\\)[}):]" 1 font-lock-reference-face prepend) |
'("\\$[({]\\([@%<?^+*][FD]?\\)[}):]" 1 font-lock-reference-face prepend) |
277 |
|
|
278 |
|
;; ...but not shell variables references. |
279 |
|
'("\\$\\$\\(\\sw+\\)" 1 'default t) |
280 |
|
|
281 |
;; Fontify conditionals and includes. |
;; Fontify conditionals and includes. |
282 |
;; Note that plain `if' is an automake conditional, and not a bug. |
;; Note that plain `if' is an automake conditional, and not a bug. |
283 |
(list |
(list |
589 |
;; SYNTAX-BEGIN set to backward-paragraph to avoid slow-down |
;; SYNTAX-BEGIN set to backward-paragraph to avoid slow-down |
590 |
;; near the end of a large buffer, due to parse-partial-sexp's |
;; near the end of a large buffer, due to parse-partial-sexp's |
591 |
;; trying to parse all the way till the beginning of buffer. |
;; trying to parse all the way till the beginning of buffer. |
592 |
'(makefile-font-lock-keywords nil nil nil backward-paragraph)) |
'(makefile-font-lock-keywords nil nil ((?$ . ".")) backward-paragraph)) |
593 |
|
|
594 |
;; Add-log. |
;; Add-log. |
595 |
(make-local-variable 'add-log-current-defun-function) |
(make-local-variable 'add-log-current-defun-function) |