From: Lars Ingebrigtsen Date: Thu, 8 Jul 2021 00:57:46 +0000 (+0200) Subject: Fix font-lock of Makefile variables at the start of lines X-Git-Tag: emacs-28.0.90~1928 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a45906ac1a973fb8b7141e1e9a5e78ce19692dda;p=emacs.git Fix font-lock of Makefile variables at the start of lines * lisp/progmodes/make-mode.el (makefile-var-use-regex): Match variables at the beginning of lines correctly (bug#23266). Change suggested by Anders Lindgren . --- diff --git a/lisp/progmodes/make-mode.el b/lisp/progmodes/make-mode.el index 3f466e1150b..4d277755aeb 100644 --- a/lisp/progmodes/make-mode.el +++ b/lisp/progmodes/make-mode.el @@ -272,7 +272,7 @@ not be enclosed in { } or ( )." "Regex used to find macro assignment lines in a makefile.") (defconst makefile-var-use-regex - "[^$]\\$[({]\\([-a-zA-Z0-9_.]+\\|[@%