]> git.eshelyaron.com Git - emacs.git/commitdiff
Tweak font-locking in conf-mode for "#foo { bar" lines
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 27 Jul 2019 14:50:25 +0000 (16:50 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 27 Jul 2019 14:50:25 +0000 (16:50 +0200)
* lisp/textmodes/conf-mode.el (conf-font-lock-keywords): Don't
font-lock comments as keywords (bug#24355).

lisp/textmodes/conf-mode.el

index ad9f60fabca17dccf493a15c562f0edadf40c816..27970096f3bc3fcec57c3095d67cd7889ecb52aa 100644 (file)
@@ -194,7 +194,7 @@ not align (only setting space according to `conf-assignment-space')."
      (1 'font-lock-variable-name-face)
      (2 'font-lock-constant-face nil t))
     ;; section { ... } (do this last because some assign ...{...)
-    ("^[ \t]*\\([^=:\n]+?\\)[ \t\n]*{[^{}]*?$" 1 'font-lock-type-face prepend))
+    ("^[ \t]*\\([^#=:\n]+?\\)[ \t\n]*{[^{}]*?$" 1 'font-lock-type-face prepend))
   "Keywords to highlight in Conf mode.")
 
 (defvar conf-javaprop-font-lock-keywords