diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2020-10-30 13:50:49 +0100 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2020-10-30 13:50:49 +0100 |
commit | 32c5f1c7a8da0c0dd9de126c966af8c7cd382970 (patch) | |
tree | ae540217b0f7a6aebee4acc9beb77a63b295a61f /lisp | |
parent | 101a3b78309dff5a7466094a893c5582093a6533 (diff) | |
download | emacs-32c5f1c7a8da0c0dd9de126c966af8c7cd382970.tar.gz |
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).
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/progmodes/make-mode.el | 4 |
1 files changed, 3 insertions, 1 deletions
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)) ?\\)) |