[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/systemd 9fc0545 061/131: move systemd-font-lock-keywords
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/systemd 9fc0545 061/131: move systemd-font-lock-keywords |
Date: |
Sun, 29 Aug 2021 11:35:15 -0400 (EDT) |
branch: elpa/systemd
commit 9fc054586da6a2f37c4972ce6433881274e45796
Author: Mark Oteiza <mvoteiza@udel.edu>
Commit: Mark Oteiza <mvoteiza@udel.edu>
move systemd-font-lock-keywords
---
systemd.el | 44 ++++++++++++++++++++++----------------------
1 file changed, 22 insertions(+), 22 deletions(-)
diff --git a/systemd.el b/systemd.el
index 5076009..f84ad24 100644
--- a/systemd.el
+++ b/systemd.el
@@ -89,28 +89,6 @@
(?? (= 16 (char hex-digit))) string-end))
"Regexp for temp file buffers in which to autoload `systemd-mode'.")
-(defvar systemd-font-lock-keywords
- `(("^\\([#;]\\)\\(.*\\)$"
- (1 'font-lock-comment-delimiter-face)
- (2 'font-lock-comment-face))
- ("\\\\$" 0 'font-lock-warning-face) ; line break
- ;; sections
- ("^\\(\\[[[:upper:]][[:alnum:]]+\\]\\)"
- 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))
- "Default expressions to highlight in `systemd-mode'.
-See systemd.unit(5) for details on unit file syntax.")
-
(defun systemd-get-value (start)
"Return the value of the key whose value begins at position START.
Lines ending in a backslash are concatenated with the next
@@ -169,6 +147,28 @@ file, defaulting to the link under point, if any."
(interactive)
(systemd-doc-man "systemd.directives(7)"))
+(defvar systemd-font-lock-keywords
+ `(("^\\([#;]\\)\\(.*\\)$"
+ (1 'font-lock-comment-delimiter-face)
+ (2 'font-lock-comment-face))
+ ("\\\\$" 0 'font-lock-warning-face) ; line break
+ ;; sections
+ ("^\\(\\[[[:upper:]][[:alnum:]]+\\]\\)"
+ 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))
+ "Default expressions to highlight in `systemd-mode'.
+See systemd.unit(5) for details on unit file syntax.")
+
(defvar systemd-mode-syntax-table
(let ((table (make-syntax-table)))
(modify-syntax-entry ?\' "." table)
- [nongnu] elpa/systemd 8e6a8ce 038/131: remove backslash escapes from doc completions, (continued)
- [nongnu] elpa/systemd 8e6a8ce 038/131: remove backslash escapes from doc completions, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 968ae5e 039/131: bump for bug fix, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 57dcf5a 041/131: for some reason, this directive is missing, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 6071c23 046/131: version 1.3, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 175d45f 047/131: checkdoc, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 05dd16c 049/131: systemd 226, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd a2ec338 055/131: use loop, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 3eb9390 058/131: add lists of directives, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 070e15e 060/131: autoload temp files generated by sd's tempfn_random, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd a86323e 059/131: v229, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 9fc0545 061/131: move systemd-font-lock-keywords,
ELPA Syncer <=
- [nongnu] elpa/systemd f306614 066/131: dang spaces, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd b004b37 068/131: autoload sorcery, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd de5da7f 073/131: update Makefile, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 63d64ad 076/131: generate directive lists from files, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd fe443ac 078/131: use font-lock-defaults to disable syntax highlighting, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 2e1f739 081/131: update readme, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 4c073b0 091/131: missed one, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 4c1b2be 097/131: bump, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd bd94a2c 094/131: shim in support for nspawn settings files, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 28601d8 101/131: woops, ELPA Syncer, 2021/08/29