branch: elpa/systemd
commit 3ff4f0f706e97d3117f66e075b397a3cf0a4ef50
Author: Mark Oteiza <mvote...@udel.edu>
Commit: Mark Oteiza <mvote...@udel.edu>

    anchor some matchers to follow "="
---
 systemd.el | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/systemd.el b/systemd.el
index fdc1d62..49cd290 100644
--- a/systemd.el
+++ b/systemd.el
@@ -275,14 +275,14 @@ See `font-lock-keywords' and (info \"(elisp) Search-based 
Fontification\")."
     ;; boolean arguments
     (,(rx "=" (group (or "yes" "true" "on" "0" "no" "false" "off")) eol)
      1 'font-lock-constant-face)
-    ;; environment variables
-    ("\\$[A-Z_]+\\>" 0 'font-lock-variable-name-face)
-    ;; specifiers
-    ("%[nNpPiIfcrRtuUhsmbHv%]" 0 'font-lock-constant-face)
-    ;; exec prefixes
     ("="
+     ;; exec prefixes
      (systemd-exec-prefix-anchored-matcher
-      nil nil (0 'font-lock-negation-char-face))))
+      nil nil (0 'font-lock-negation-char-face))
+     ;; environment variables
+     ("\\$[A-Z_]+\\>" nil nil (0 'font-lock-variable-name-face))
+     ;; specifiers
+     ("%[nNpPiIfcrRtuUhsmbHv%]" nil nil (0 'font-lock-constant-face))))
   "Extended expressions to highlight in `systemd-mode'.")
 
 (defconst systemd-font-lock-keywords-3

Reply via email to