* lisp/progmodes/rust-ts-mode.el (rust-ts-mode--font-lock-settings):
Add a rule for else in macro body. Also added the same rule for "in"
and "move" keyword, as they seems to have the same problem.
(cherry picked from commit
07c47ea002b4702285bbf467ec09c9b281eb19b7)
:language 'rust
:feature 'keyword
- `([,@rust-ts-mode--keywords] @font-lock-keyword-face)
+ `([,@rust-ts-mode--keywords] @font-lock-keyword-face
+ ;; 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)))
:language 'rust
:feature 'number