]> git.eshelyaron.com Git - emacs.git/commitdiff
Fontize more automatic variables in makefile-gmake-mode
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 5 Feb 2021 12:08:50 +0000 (13:08 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 5 Feb 2021 12:08:50 +0000 (13:08 +0100)
* lisp/progmodes/make-mode.el (makefile-gmake-font-lock-keywords):
Fontize the $ in more automatic variables (bug#27842).

lisp/progmodes/make-mode.el

index a0e09f51ce35821ee8a1732c951f96a0bda69305..e382d6edcd29db35a6d8cc8a81dd4e32d5255222 100644 (file)
@@ -435,6 +435,9 @@ not be enclosed in { } or ( )."
    '("[^$]\\(\\$[({][@%*][DF][})]\\)"
      1 'makefile-targets append)
 
+   ;; Automatic variables.
+   '("[^$]\\(\\$[@%*?+^|]\\)" 1 'makefile-targets append)
+
    ;; $(function ...) ${function ...}
    '("[^$]\\$[({]\\([-a-zA-Z0-9_.]+\\s \\)"
      1 font-lock-function-name-face prepend)