emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/systemd 6fd29c5 070/131: font lock keywords: comments and


From: ELPA Syncer
Subject: [nongnu] elpa/systemd 6fd29c5 070/131: font lock keywords: comments and sections
Date: Sun, 29 Aug 2021 11:35:17 -0400 (EDT)

branch: elpa/systemd
commit 6fd29c5c85def7e9bc853c042eae82d0ba4f7fc8
Author: Mark Oteiza <mvoteiza@udel.edu>
Commit: Mark Oteiza <mvoteiza@udel.edu>

    font lock keywords: comments and sections
    
    * let comments be prefixed with whitespace
    * match ignored "X-" section headers
---
 systemd.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/systemd.el b/systemd.el
index aa67670..48bcd2d 100644
--- a/systemd.el
+++ b/systemd.el
@@ -317,12 +317,12 @@ file, defaulting to the link under point, if any."
     (`post-completion (if (not (systemd-buffer-section-p)) (insert "=")))))
 
 (defvar systemd-font-lock-keywords
-  `(("^\\([#;]\\)\\(.*\\)$"
+  `(("^[[:space:]]\\([#;]\\)\\(.*\\)$"
      (1 'font-lock-comment-delimiter-face)
      (2 'font-lock-comment-face))
     ("\\\\$" 0 'font-lock-warning-face) ; line break
     ;; sections
-    ("^\\(\\[\\(?:X-\\)?[[:upper:]][[:alnum:]]+\\]\\)"
+    ("^\\(\\[\\([[:upper:]][[:alnum:]]+\\|X-.*?\\)\\]\\)"
      1 'font-lock-type-face)
     ;; keys
     ("^\\([[:upper:]][[:alnum:]]+\\)="



reply via email to

[Prev in Thread] Current Thread [Next in Thread]