use rx here
This commit is contained in:
parent
16ba942afd
commit
839094df0e
13
systemd.el
13
systemd.el
@ -346,15 +346,12 @@ See `font-lock-keywords' and (info \"(elisp) Search-based Fontification\")."
|
|||||||
1 'font-lock-builtin-face)
|
1 'font-lock-builtin-face)
|
||||||
("^KillMode=\\(control-group\\|process\\|mixed\\|none\\)$"
|
("^KillMode=\\(control-group\\|process\\|mixed\\|none\\)$"
|
||||||
1 'font-lock-builtin-face)
|
1 'font-lock-builtin-face)
|
||||||
(,(eval-when-compile
|
(,(rx bol "KillSignal="
|
||||||
(concat
|
(group
|
||||||
"^KillSignal="
|
(or "SIGHUP" "SIGINT" "SIGQUIT" "SIGILL" "SIGABRT" "SIGFPE" "SIGKILL"
|
||||||
(regexp-opt
|
|
||||||
'("SIGHUP" "SIGINT" "SIGQUIT" "SIGILL" "SIGABRT" "SIGFPE" "SIGKILL"
|
|
||||||
"SIGSEGV" "SIGPIPE" "SIGALRM" "SIGTERM" "SIGUSR1" "SIGUSR2"
|
"SIGSEGV" "SIGPIPE" "SIGALRM" "SIGTERM" "SIGUSR1" "SIGUSR2"
|
||||||
"SIGCHLD" "SIGCONT" "SIGSTOP" "SIGTSTP" "SIGTTIN" "SIGTTOU")
|
"SIGCHLD" "SIGCONT" "SIGSTOP" "SIGTSTP" "SIGTTIN" "SIGTTOU"))
|
||||||
t)
|
eol)
|
||||||
"$"))
|
|
||||||
1 'font-lock-constant-face))
|
1 'font-lock-constant-face))
|
||||||
"Flamboyant expressions to highlight in `systemd-mode'.")
|
"Flamboyant expressions to highlight in `systemd-mode'.")
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user