[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/systemd 5c9389d 110/131: move this matcher down with the o
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/systemd 5c9389d 110/131: move this matcher down with the other ones |
Date: |
Sun, 29 Aug 2021 11:35:24 -0400 (EDT) |
branch: elpa/systemd
commit 5c9389dae316a26e76c4b3a92c2149c091e5e8ba
Author: Mark Oteiza <mvoteiza@udel.edu>
Commit: Mark Oteiza <mvoteiza@udel.edu>
move this matcher down with the other ones
---
systemd.el | 30 +++++++++++++++---------------
1 file changed, 15 insertions(+), 15 deletions(-)
diff --git a/systemd.el b/systemd.el
index 5708ea3..4715d1b 100644
--- a/systemd.el
+++ b/systemd.el
@@ -202,21 +202,6 @@ file, defaulting to the link under point, if any."
(interactive)
(systemd-doc-man "systemd.directives(7)"))
-(defun systemd-exec-prefix-anchored-matcher (limit)
- "Matcher for the exec prefix in anchored font-lock rule.
-See `font-lock-keywords' and (info \"(elisp) Search-based Fontification\")."
- (let ((pos (car (match-data)))
- (prefixes '(?- ?@ ?+))
- char end res)
- (while (and (memq (setq char (following-char)) prefixes)
- (< (point) limit))
- (forward-char)
- (setq prefixes (remq char prefixes))
- (setq end (point-marker)))
- (when end
- (prog1 (setq res (list (1+ pos) end))
- (set-match-data res)))))
-
(defun systemd-buffer-section-p ()
"Return t if current line begins with \"[\", otherwise nil."
(= (char-after (line-beginning-position)) ?\[))
@@ -277,6 +262,21 @@ Only matches comments on lines passing
`systemd-construct-start-p'."
(not (systemd-construct-start-p))))
match))
+(defun systemd-exec-prefix-anchored-matcher (limit)
+ "Matcher for the exec prefix in anchored font-lock rule.
+See `font-lock-keywords' and (info \"(elisp) Search-based Fontification\")."
+ (let ((pos (car (match-data)))
+ (prefixes '(?- ?@ ?+))
+ char end res)
+ (while (and (memq (setq char (following-char)) prefixes)
+ (< (point) limit))
+ (forward-char)
+ (setq prefixes (remq char prefixes))
+ (setq end (point-marker)))
+ (when end
+ (prog1 (setq res (list (1+ pos) end))
+ (set-match-data res)))))
+
(defconst systemd-font-lock-keywords-1
`((systemd-comment-matcher
(1 'font-lock-comment-delimiter-face)
- [nongnu] elpa/systemd 3580191 067/131: add autoload regex tests, (continued)
- [nongnu] elpa/systemd 3580191 067/131: add autoload regex tests, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 16be183 084/131: don't indiscriminately use relative file name, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd f0b29ad 087/131: systemd v232 directives, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 7874a10 090/131: future flycheck has a checker for units, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd fa1277d 092/131: add reminder, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 59ce8ad 095/131: simpler while test, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 9693935 099/131: nix extra newline, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 7bb8f09 104/131: correct syntax?, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd a4f4096 107/131: moar keywords, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd b0c1d64 109/131: add multi-line comment highlighting, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 5c9389d 110/131: move this matcher down with the other ones,
ELPA Syncer <=
- [nongnu] elpa/systemd a3d3921 111/131: extend multi-line matching to sections and keys, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd a9f82b1 124/131: add systemd-mode company backend buffer locally, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 401d71c 122/131: Add %E, %j, %J, %T, %V specifiers, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd ec8f6cf 128/131: happy new year, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd b6ae63a 131/131: add specifiers (leave obsoleted ones in for now), ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 0416fe4 130/131: drop some unneeded eval-when-compile, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 50c63c2 026/131: allow cycling completions in `systemd-doc-open`, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 612c3de 027/131: double bump, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 347c157 031/131: lexical binding, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd e7a2efb 021/131: mention `package-install-file` in README, ELPA Syncer, 2021/08/29