emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/systemd 839094d 114/131: use rx here


From: ELPA Syncer
Subject: [nongnu] elpa/systemd 839094d 114/131: use rx here
Date: Sun, 29 Aug 2021 11:35:25 -0400 (EDT)

branch: elpa/systemd
commit 839094df0e70f188a9af298492b3480d62f3a466
Author: Mark Oteiza <mvoteiza@udel.edu>
Commit: Mark Oteiza <mvoteiza@udel.edu>

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]