From ae9202de3265111a6d94d7fc183aff0a3a49c818 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Sat, 27 Jul 2019 16:50:25 +0200 Subject: [PATCH] Tweak font-locking in conf-mode for "#foo { bar" lines * lisp/textmodes/conf-mode.el (conf-font-lock-keywords): Don't font-lock comments as keywords (bug#24355). --- lisp/textmodes/conf-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/textmodes/conf-mode.el b/lisp/textmodes/conf-mode.el index ad9f60fabca..27970096f3b 100644 --- a/lisp/textmodes/conf-mode.el +++ b/lisp/textmodes/conf-mode.el @@ -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 -- 2.39.2