From: Lars Ingebrigtsen Date: Fri, 30 Oct 2020 12:50:49 +0000 (+0100) Subject: Fix fontifying of ::= in Makefiles X-Git-Tag: emacs-28.0.90~5338 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=32c5f1c7a8da0c0dd9de126c966af8c7cd382970;p=emacs.git 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). --- 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)) ?\\))