From 32c5f1c7a8da0c0dd9de126c966af8c7cd382970 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Fri, 30 Oct 2020 13:50:49 +0100 Subject: [PATCH] Fix fontifying of ::= in Makefiles * lisp/progmodes/make-mode.el (makefile-match-dependency): Don't fontify the POSIX immediate assignment operator ::= as a dependency (bug#44319). --- lisp/progmodes/make-mode.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/make-mode.el b/lisp/progmodes/make-mode.el index 01cc330dc2e..ac3d0817097 100644 --- a/lisp/progmodes/make-mode.el +++ b/lisp/progmodes/make-mode.el @@ -1721,7 +1721,9 @@ matched in a rule action." (while (progn (skip-chars-forward makefile-dependency-skip bound) (< (point) (or bound (point-max)))) (forward-char) - (or (eq (char-after) ?=) + ;; The GNU immediate assignment operator is ":=", while the + ;; POSIX operator is "::=". + (or (looking-at ":?=") (get-text-property (1- (point)) 'face) (if (> (line-beginning-position) (+ (point-min) 2)) (eq (char-before (line-end-position 0)) ?\\)) -- 2.39.5