]> git.eshelyaron.com Git - emacs.git/commit
rust-ts-mode: Highlight variable reassignments
authorDmitry Gutov <dgutov@yandex.ru>
Tue, 14 Feb 2023 17:29:30 +0000 (19:29 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Tue, 14 Feb 2023 21:54:58 +0000 (23:54 +0200)
commit477aa047ee73d2b93c04a88700263e58cf7bab70
treea808c0a8409855523909ebd44eb73f7a74f7a6b0
parent5206a551c166fc1908edff4fdf1695f7cef3600a
rust-ts-mode: Highlight variable reassignments

* lisp/progmodes/rust-ts-mode.el (rust-ts-mode):
New treesit font-lock feature: 'assignment' (bug#61302).
(rust-ts-mode--fontify-pattern): Remove the node lookup step.
(rust-ts-mode--font-lock-settings): Update variable declaration
queries to match the 'pattern' child node right away.  Add
highlights for 'assignment.
lisp/progmodes/rust-ts-mode.el