put the quotes back. faces are symbols
font-lock.el is an exception wrt defvar'ing faces, not the rule
This commit is contained in:
parent
2e1f7394f1
commit
0e793b05e2
16
systemd.el
16
systemd.el
@ -222,22 +222,22 @@ file, defaulting to the link under point, if any."
|
|||||||
(defvar systemd-font-lock-keywords
|
(defvar systemd-font-lock-keywords
|
||||||
(eval-when-compile
|
(eval-when-compile
|
||||||
`(("^[[:space:]]*?\\([#;]\\)\\(.*\\)$"
|
`(("^[[:space:]]*?\\([#;]\\)\\(.*\\)$"
|
||||||
(1 font-lock-comment-delimiter-face)
|
(1 'font-lock-comment-delimiter-face)
|
||||||
(2 font-lock-comment-face))
|
(2 'font-lock-comment-face))
|
||||||
("\\\\$" 0 font-lock-warning-face) ; line break
|
("\\\\$" 0 'font-lock-warning-face) ; line break
|
||||||
;; sections
|
;; sections
|
||||||
("^\\(\\[\\([[:upper:]][[:alnum:]]+\\|X-.*?\\)\\]\\)"
|
("^\\(\\[\\([[:upper:]][[:alnum:]]+\\|X-.*?\\)\\]\\)"
|
||||||
1 font-lock-type-face)
|
1 'font-lock-type-face)
|
||||||
;; keys
|
;; keys
|
||||||
("^\\([[:upper:]][[:alnum:]]+\\)="
|
("^\\([[:upper:]][[:alnum:]]+\\)="
|
||||||
1 font-lock-keyword-face)
|
1 'font-lock-keyword-face)
|
||||||
;; boolean arguments
|
;; boolean arguments
|
||||||
(,(rx "=" (group (or "yes" "true" "on" "0" "no" "false" "off")) eol)
|
(,(rx "=" (group (or "yes" "true" "on" "0" "no" "false" "off")) eol)
|
||||||
1 font-lock-constant-face)
|
1 'font-lock-constant-face)
|
||||||
;; specifiers
|
;; specifiers
|
||||||
("%[nNpPiIfcrRtuUhsmbHv%]" 0 font-lock-constant-face)
|
("%[nNpPiIfcrRtuUhsmbHv%]" 0 'font-lock-constant-face)
|
||||||
;; exec prefixes
|
;; exec prefixes
|
||||||
("=\\(-@\\|@-\\|[@-]\\)" 1 font-lock-negation-char-face)))
|
("=\\(-@\\|@-\\|[@-]\\)" 1 'font-lock-negation-char-face)))
|
||||||
"Default expressions to highlight in `systemd-mode'.
|
"Default expressions to highlight in `systemd-mode'.
|
||||||
See systemd.unit(5) for details on unit file syntax.")
|
See systemd.unit(5) for details on unit file syntax.")
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user