emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 32c5f1c: Fix fontifying of ::= in Makefiles


From: Lars Ingebrigtsen
Subject: master 32c5f1c: Fix fontifying of ::= in Makefiles
Date: Fri, 30 Oct 2020 08:52:56 -0400 (EDT)

branch: master
commit 32c5f1c7a8da0c0dd9de126c966af8c7cd382970
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    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 01cc330..ac3d081 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)) ?\\))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]