273 |
;; that if you change this regexp you might have to fix the imenu index in |
;; that if you change this regexp you might have to fix the imenu index in |
274 |
;; makefile-imenu-generic-expression. |
;; makefile-imenu-generic-expression. |
275 |
(defconst makefile-macroassign-regex |
(defconst makefile-macroassign-regex |
276 |
"^ *\\([^ \n\t][^:#= \t\n]*\\)[ \t]*\\(?:!=[ \t]*\\(\\(?:.+\\\\\n\\)*.+\\)\\|[*:+]?[:?]?=\\)" |
"^ *\\([^ \n\t][^:#= \t\n]*\\)[ \t]*\\(?:!=[ \t]*\\(\\(?:.+\\\\\n\\)*.+\\)\\|[*:+]?[:?]?=[ \t]*\\(\\(?:.+\\\\\n\\)*.+\\)\\)" |
277 |
"Regex used to find macro assignment lines in a makefile.") |
"Regex used to find macro assignment lines in a makefile.") |
278 |
|
|
279 |
(defconst makefile-var-use-regex |
(defconst makefile-var-use-regex |
331 |
(,makefile-macroassign-regex |
(,makefile-macroassign-regex |
332 |
(1 font-lock-variable-name-face) |
(1 font-lock-variable-name-face) |
333 |
;; This is for after != |
;; This is for after != |
334 |
(2 'makefile-shell-face prepend t)) |
(2 'makefile-shell-face prepend t) |
335 |
|
;; This is for after normal assignment |
336 |
|
(3 'font-lock-string-face prepend t)) |
337 |
|
|
338 |
;; Rule actions. |
;; Rule actions. |
339 |
(makefile-match-action |
(makefile-match-action |
789 |
nil nil |
nil nil |
790 |
((?$ . ".")) |
((?$ . ".")) |
791 |
backward-paragraph |
backward-paragraph |
792 |
(font-lock-syntactic-keywords . makefile-font-lock-syntactic-keywords))) |
(font-lock-syntactic-keywords . makefile-font-lock-syntactic-keywords) |
793 |
|
(font-lock-support-mode))) ; JIT breaks on long series of continuation lines. |
794 |
|
|
795 |
;; Add-log. |
;; Add-log. |
796 |
(make-local-variable 'add-log-current-defun-function) |
(make-local-variable 'add-log-current-defun-function) |