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)
|
||||
("^KillMode=\\(control-group\\|process\\|mixed\\|none\\)$"
|
||||
1 'font-lock-builtin-face)
|
||||
(,(eval-when-compile
|
||||
(concat
|
||||
"^KillSignal="
|
||||
(regexp-opt
|
||||
'("SIGHUP" "SIGINT" "SIGQUIT" "SIGILL" "SIGABRT" "SIGFPE" "SIGKILL"
|
||||
(,(rx bol "KillSignal="
|
||||
(group
|
||||
(or "SIGHUP" "SIGINT" "SIGQUIT" "SIGILL" "SIGABRT" "SIGFPE" "SIGKILL"
|
||||
"SIGSEGV" "SIGPIPE" "SIGALRM" "SIGTERM" "SIGUSR1" "SIGUSR2"
|
||||
"SIGCHLD" "SIGCONT" "SIGSTOP" "SIGTSTP" "SIGTTIN" "SIGTTOU")
|
||||
t)
|
||||
"$"))
|
||||
"SIGCHLD" "SIGCONT" "SIGSTOP" "SIGTSTP" "SIGTTIN" "SIGTTOU"))
|
||||
eol)
|
||||
1 'font-lock-constant-face))
|
||||
"Flamboyant expressions to highlight in `systemd-mode'.")
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user