summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorYuan Fu <casouri@gmail.com>2024-05-01 21:50:21 -0700
committerYuan Fu <casouri@gmail.com>2024-05-01 21:50:21 -0700
commitbf026b8e55626b35144f93056744f3fd50bc126b (patch)
treea8aca8e702f64820afc01bd3fe56270b8b201e84 /lisp
parent07c47ea002b4702285bbf467ec09c9b281eb19b7 (diff)
downloademacs-bf026b8e55626b35144f93056744f3fd50bc126b.tar.gz
Tighten regexp for rust-ts-mode keyword workaround
* lisp/progmodes/rust-ts-mode.el (rust-ts-mode--font-lock-settings): Add bos and eos.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/progmodes/rust-ts-mode.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/rust-ts-mode.el b/lisp/progmodes/rust-ts-mode.el
index 7bc05898d15..baf0e1ec013 100644
--- a/lisp/progmodes/rust-ts-mode.el
+++ b/lisp/progmodes/rust-ts-mode.el
@@ -217,7 +217,7 @@ to be checked as its standard input."
;; If these keyword are in a macro body, they're marked as
;; identifiers.
((identifier) @font-lock-keyword-face
- (:match ,(rx (or "else" "in" "move")) @font-lock-keyword-face)))
+ (:match ,(rx bos (or "else" "in" "move") eos) @font-lock-keyword-face)))
:language 'rust
:feature 'number