use rx here

This commit is contained in:
Mark Oteiza 2017-09-17 15:37:16 -04:00
parent 16ba942afd
commit 839094df0e

View File

@ -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'.")