]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix "dnl" highlights in m4-mode
authorLars Ingebrigtsen <larsi@gnus.org>
Wed, 30 Oct 2019 12:16:07 +0000 (13:16 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 30 Oct 2019 12:16:44 +0000 (13:16 +0100)
* 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.

lisp/progmodes/m4-mode.el

index 98b812f52f6a9b6c55ee58c3d6c6c692a80048da..15461a9ac9cbc369291164635765a9e7fe05b9fd 100644 (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)