From a45906ac1a973fb8b7141e1e9a5e78ce19692dda Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Thu, 8 Jul 2021 02:57:46 +0200 Subject: [PATCH] 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 . --- lisp/progmodes/make-mode.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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_.]+\\|[@%