diff options
| author | Yuan Fu | 2024-05-01 21:50:21 -0700 |
|---|---|---|
| committer | Yuan Fu | 2024-05-01 21:50:21 -0700 |
| commit | bf026b8e55626b35144f93056744f3fd50bc126b (patch) | |
| tree | a8aca8e702f64820afc01bd3fe56270b8b201e84 | |
| parent | 07c47ea002b4702285bbf467ec09c9b281eb19b7 (diff) | |
| download | emacs-bf026b8e55626b35144f93056744f3fd50bc126b.tar.gz emacs-bf026b8e55626b35144f93056744f3fd50bc126b.zip | |
Tighten regexp for rust-ts-mode keyword workaround
* lisp/progmodes/rust-ts-mode.el (rust-ts-mode--font-lock-settings):
Add bos and eos.
| -rw-r--r-- | lisp/progmodes/rust-ts-mode.el | 2 |
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." | |||
| 217 | ;; If these keyword are in a macro body, they're marked as | 217 | ;; If these keyword are in a macro body, they're marked as |
| 218 | ;; identifiers. | 218 | ;; identifiers. |
| 219 | ((identifier) @font-lock-keyword-face | 219 | ((identifier) @font-lock-keyword-face |
| 220 | (:match ,(rx (or "else" "in" "move")) @font-lock-keyword-face))) | 220 | (:match ,(rx bos (or "else" "in" "move") eos) @font-lock-keyword-face))) |
| 221 | 221 | ||
| 222 | :language 'rust | 222 | :language 'rust |
| 223 | :feature 'number | 223 | :feature 'number |