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.
This commit is contained in:
Lars Ingebrigtsen 2019-10-30 13:16:07 +01:00
parent e1409379f7
commit 66efb2f3a6

View file

@ -63,7 +63,7 @@ If m4 is not in your PATH, set this to an absolute file name."
;;(defconst m4-program-options '("--prefix-builtins"))
(defvar m4-font-lock-keywords
'(("\\(\\_<\\(m4_\\)?dnl\\_>\\).*$" . font-lock-comment-face)
'(("\\(\\_<\\(m4_\\)?dnl\\_>\\).*$" (0 font-lock-comment-face t))
("\\$[*#@0-9]" . font-lock-variable-name-face)
("\\$@" . font-lock-variable-name-face)
("\\$\\*" . font-lock-variable-name-face)