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

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

[nongnu] elpa/systemd fa1277d 092/131: add reminder


From: ELPA Syncer
Subject: [nongnu] elpa/systemd fa1277d 092/131: add reminder
Date: Sun, 29 Aug 2021 11:35:20 -0400 (EDT)

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

    add reminder
    
    The new regex is not too hard to generate with some set/combinatorics
    fun, but perhaps going about this a different way would be better
    
      (let ((s (delq nil (powerset '("@" "-" "+")))))
        (concat "="
         (regexp-opt
          (mapcar (lambda (ls) (apply #'concat ls))
                  (apply #'append (mapcar #'permutations s)))
         "\\(?1:")))
---
 systemd.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/systemd.el b/systemd.el
index 98fccfe..c1f8a8c 100644
--- a/systemd.el
+++ b/systemd.el
@@ -243,6 +243,7 @@ file, defaulting to the link under point, if any."
       ;; specifiers
       ("%[nNpPiIfcrRtuUhsmbHv%]" 0 'font-lock-constant-face)
       ;; exec prefixes
+      ;; TODO account for @ being a prefix now
       ("=\\(-@\\|@-\\|[@-]\\)" 1 'font-lock-negation-char-face)))
   "Default expressions to highlight in `systemd-mode'.
 See systemd.unit(5) for details on unit file syntax.")



reply via email to

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