aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-10-30 13:16:07 +0100
committerLars Ingebrigtsen2019-10-30 13:16:44 +0100
commit66efb2f3a636868ada730c2f472f070a51f3c6b2 (patch)
treefa8038464315815d0a8a3e0b4ba882dfebb804a3
parente1409379f7ce60eb845a0b9c3a614af4f5fac694 (diff)
downloademacs-66efb2f3a636868ada730c2f472f070a51f3c6b2.tar.gz
emacs-66efb2f3a636868ada730c2f472f070a51f3c6b2.zip
Fix "dnl" highlights in m4-mode
* lisp/progmodes/m4-mode.el (m4-font-lock-keywords): "dnl" comments should override any previous syntax-based highlighting (37132). This makes "dnl foo#bar" be highlighted correctly.
-rw-r--r--lisp/progmodes/m4-mode.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/m4-mode.el b/lisp/progmodes/m4-mode.el
index 98b812f52f6..15461a9ac9c 100644
--- a/lisp/progmodes/m4-mode.el
+++ b/lisp/progmodes/m4-mode.el
@@ -63,7 +63,7 @@ If m4 is not in your PATH, set this to an absolute file name."
63;;(defconst m4-program-options '("--prefix-builtins")) 63;;(defconst m4-program-options '("--prefix-builtins"))
64 64
65(defvar m4-font-lock-keywords 65(defvar m4-font-lock-keywords
66 '(("\\(\\_<\\(m4_\\)?dnl\\_>\\).*$" . font-lock-comment-face) 66 '(("\\(\\_<\\(m4_\\)?dnl\\_>\\).*$" (0 font-lock-comment-face t))
67 ("\\$[*#@0-9]" . font-lock-variable-name-face) 67 ("\\$[*#@0-9]" . font-lock-variable-name-face)
68 ("\\$@" . font-lock-variable-name-face) 68 ("\\$@" . font-lock-variable-name-face)
69 ("\\$\\*" . font-lock-variable-name-face) 69 ("\\$\\*" . font-lock-variable-name-face)