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:")))
This commit is contained in:
parent
4c073b0c04
commit
fa1277d1cd
@ -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.")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user