[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/systemd 378eb36 077/131: nix some quotes. use some rx
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/systemd 378eb36 077/131: nix some quotes. use some rx |
Date: |
Sun, 29 Aug 2021 11:35:18 -0400 (EDT) |
branch: elpa/systemd
commit 378eb3642c66918cf3202d1d6669a9048619f0ef
Author: Mark Oteiza <mvoteiza@udel.edu>
Commit: Mark Oteiza <mvoteiza@udel.edu>
nix some quotes. use some rx
---
systemd.el | 36 ++++++++++++++++++------------------
1 file changed, 18 insertions(+), 18 deletions(-)
diff --git a/systemd.el b/systemd.el
index 4022a9d..ce299bf 100644
--- a/systemd.el
+++ b/systemd.el
@@ -220,24 +220,24 @@ 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
- ("^\\(\\[\\([[:upper:]][[:alnum:]]+\\|X-.*?\\)\\]\\)"
- 1 'font-lock-type-face)
- ;; keys
- ("^\\([[:upper:]][[:alnum:]]+\\)="
- 1 'font-lock-keyword-face)
- ;; boolean arguments
- ("=\\(1\\|yes\\|true\\|on\\|0\\|no\\|false\\|off\\)$"
- 1 'font-lock-constant-face)
- ;; specifiers
- ("%[nNpPiIfcrRtuUhsmbHv%]" 0 'font-lock-constant-face)
- ;; exec prefixes
- ("=\\(-@\\|@-\\|[@-]\\)"
- 1 'font-lock-negation-char-face))
+ (eval-when-compile
+ `(("^[[:space:]]*?\\([#;]\\)\\(.*\\)$"
+ (1 font-lock-comment-delimiter-face)
+ (2 font-lock-comment-face))
+ ("\\\\$" 0 font-lock-warning-face) ; line break
+ ;; sections
+ ("^\\(\\[\\([[:upper:]][[:alnum:]]+\\|X-.*?\\)\\]\\)"
+ 1 font-lock-type-face)
+ ;; keys
+ ("^\\([[:upper:]][[:alnum:]]+\\)="
+ 1 font-lock-keyword-face)
+ ;; boolean arguments
+ (,(rx "=" (group (or "yes" "true" "on" "0" "no" "false" "off")) eol)
+ 1 font-lock-constant-face)
+ ;; specifiers
+ ("%[nNpPiIfcrRtuUhsmbHv%]" 0 font-lock-constant-face)
+ ;; exec prefixes
+ ("=\\(-@\\|@-\\|[@-]\\)" 1 font-lock-negation-char-face)))
"Default expressions to highlight in `systemd-mode'.
See systemd.unit(5) for details on unit file syntax.")
- [nongnu] elpa/systemd c6e06df 123/131: happy new year, (continued)
- [nongnu] elpa/systemd c6e06df 123/131: happy new year, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 5b68986 024/131: add C-c C-d for opening systemd.directives(7), ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 09bfb67 030/131: explicitly require cl-lib, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 077b294 036/131: no change in systemd 220, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd f69d903 040/131: add missing network directives, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 1513dd0 054/131: systemd 228, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd dbf7830 057/131: happy new year, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd a434645 063/131: improvements to autoload regexen, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 4121a9a 064/131: section names can be prefixed with X-, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 5cb70eb 069/131: change dropin filename restrictions, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 378eb36 077/131: nix some quotes. use some rx,
ELPA Syncer <=
- [nongnu] elpa/systemd a08af4c 080/131: systemd 230 directives, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 0e793b0 082/131: put the quotes back. faces are symbols, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 0a4b6c4 089/131: shrug, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd a2c60f4 096/131: happy belated new year, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 6884c8f 098/131: systemd 233?, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 995ebbe 106/131: add conventional environment variable highlighting, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 3ff4f0f 108/131: anchor some matchers to follow "=", ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 70c7620 116/131: add -pkg file to clean target, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 21d50f2 121/131: Sort specifiers alphabetically, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 51c148e 127/131: update urls, ELPA Syncer, 2021/08/29