[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/rec-mode 8d9b73870a 1/2: Highlight full words only when
From: |
ELPA Syncer |
Subject: |
[elpa] externals/rec-mode 8d9b73870a 1/2: Highlight full words only when highlighting types and constants |
Date: |
Fri, 30 Aug 2024 03:59:38 -0400 (EDT) |
branch: externals/rec-mode
commit 8d9b73870acdd0a282a5c2829b139a93a39366dc
Author: Antoine Kalmbach <ane@iki.fi>
Commit: Antoine Kalmbach <ane@iki.fi>
Highlight full words only when highlighting types and constants
* rec-mode.el (rec-font-lock-keywords): highlight words only
Thanks to Thomas Dupond for this suggestion.
---
rec-mode.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/rec-mode.el b/rec-mode.el
index f7c1b64aa2..47b6d2347d 100644
--- a/rec-mode.el
+++ b/rec-mode.el
@@ -6,7 +6,7 @@
;; Maintainer: Antoine Kalmbach <ane@iki.fi>
;; URL: https://www.gnu.org/software/recutils/
;; Package-Requires: ((emacs "25"))
-;; Version: 1.9.3
+;; Version: 1.9.4
;; This file is NOT part of GNU Emacs.
@@ -207,8 +207,8 @@ hidden by default in navigation mode.")
(defvar rec-font-lock-keywords
`((,(concat "^" rec-keyword-prefix "[a-zA-Z0-9_]+:") . 'rec-keyword-face)
(,rec-type-re . (1 font-lock-function-name-face))
- (,(regexp-opt rec-constants) . 'font-lock-constant-face)
- (,(regexp-opt rec-field-types) . 'font-lock-type-face)
+ (,(regexp-opt rec-constants 'words) . 'font-lock-constant-face)
+ (,(regexp-opt rec-field-types 'words) . 'font-lock-type-face)
(,rec-field-name-re . 'rec-field-name-face)
("^\\+" . 'rec-continuation-line-face))
"Font lock keywords used in `rec-mode'.")