branch: elpa/systemd
commit 839094df0e70f188a9af298492b3480d62f3a466
Author: Mark Oteiza <[email protected]>
Commit: Mark Oteiza <[email protected]>
use rx here
---
systemd.el | 15 ++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)
diff --git a/systemd.el b/systemd.el
index f83a072..807ebd9 100644
--- a/systemd.el
+++ b/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"
- "SIGSEGV" "SIGPIPE" "SIGALRM" "SIGTERM" "SIGUSR1" "SIGUSR2"
- "SIGCHLD" "SIGCONT" "SIGSTOP" "SIGTSTP" "SIGTTIN" "SIGTTOU")
- t)
- "$"))
+ (,(rx bol "KillSignal="
+ (group
+ (or "SIGHUP" "SIGINT" "SIGQUIT" "SIGILL" "SIGABRT" "SIGFPE"
"SIGKILL"
+ "SIGSEGV" "SIGPIPE" "SIGALRM" "SIGTERM" "SIGUSR1" "SIGUSR2"
+ "SIGCHLD" "SIGCONT" "SIGSTOP" "SIGTSTP" "SIGTTIN" "SIGTTOU"))
+ eol)
1 'font-lock-constant-face))
"Flamboyant expressions to highlight in `systemd-mode'.")