[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/git-commit 2a5815fee1 3/3: git-commit-font-lock-keywords-1
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/git-commit 2a5815fee1 3/3: git-commit-font-lock-keywords-1: Use more restrictive keyword regexp |
Date: |
Tue, 1 Nov 2022 18:58:46 -0400 (EDT) |
branch: elpa/git-commit
commit 2a5815fee1ed091751b8bbfa242f7a78d7e5e039
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
git-commit-font-lock-keywords-1: Use more restrictive keyword regexp
Closes #4806.
---
lisp/git-commit.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/git-commit.el b/lisp/git-commit.el
index 62a02cfee3..bf8b01999e 100644
--- a/lisp/git-commit.el
+++ b/lisp/git-commit.el
@@ -980,7 +980,7 @@ Added to `font-lock-extend-region-functions'."
(eval . `(,(git-commit-summary-regexp)
(1 'git-commit-summary)))
;; - Keyword [aka "text in brackets"] (overrides summary)
- ("\\[.+?\\]"
+ ("\\[[^][]+?\\]"
(0 'git-commit-keyword t))
;; - Non-empty second line (overrides summary and note)
(eval . `(,(git-commit-summary-regexp)