From ce4bdd77b028bf95dae0730d7a9369d676e5efa0 Mon Sep 17 00:00:00 2001 From: "John F. Trudeau" Date: Wed, 24 Feb 2016 12:21:06 +1100 Subject: [PATCH] Highlight assignments in Makefiles more correctly * lisp/progmodes/make-mode.el (makefile-macroassign-regex): Highlight assignments preceded by a TAB character correctly (bug#20787). Copyright-paperwork-exempt: yes Backport: (cherry picked from commit bbd86c5642bd62c43d72391669f28eaa14459fd5) --- lisp/progmodes/make-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/make-mode.el b/lisp/progmodes/make-mode.el index 5cc6321e1ba..ee4b1040566 100644 --- a/lisp/progmodes/make-mode.el +++ b/lisp/progmodes/make-mode.el @@ -291,7 +291,7 @@ not be enclosed in { } or ( )." ;; (spanning potentially several lines). ;; "^ *\\([^ \n\t][^:#= \t\n]*\\)[ \t]*\\(?:!=[ \t]*\\(\\(?:.+\\\\\n\\)*.+\\)\\|[*:+]?[:?]?=[ \t]*\\(\\(?:.*\\\\\n\\)*.*\\)\\)" ;; What about the define statement? What about differentiating this for makepp? - "\\(?:^\\|^export\\|^override\\|:\\|: *override\\) *\\([^ \n\t][^:#= \t\n]*\\)[ \t]*\\(?:!=\\|[*:+]?[:?]?=\\)" + "\\(?:^\\|^export\\|^override\\|:\\|:[ \t]*override\\)[ \t]*\\([^ \n\t][^:#= \t\n]*\\)[ \t]*\\(?:!=\\|[*:+]?[:?]?=\\)" "Regex used to find macro assignment lines in a makefile.") (defconst makefile-var-use-regex -- 2.39.2