]> git.eshelyaron.com Git - emacs.git/commit
rust-ts-mode: Highlight variable declarations
authorDmitry Gutov <dgutov@yandex.ru>
Sun, 5 Feb 2023 16:49:24 +0000 (18:49 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Sun, 5 Feb 2023 16:50:23 +0000 (18:50 +0200)
commite38ff004631805672aa07e3e7a87ae2e8d948a02
treeeddb196b03f1493676f3e124e6e2540590bd65ef
parentd12727057d49df72df9da185e62e8a2caece249b
rust-ts-mode: Highlight variable declarations

(rust-ts-mode--font-lock-settings): Change scoped_type_identifier
highlight to match similar cases.  Highlight variable declarations
inside all kinds of destructuring patterns, not just function
definitions.
* lisp/progmodes/rust-ts-mode.el (rust-ts-mode--fontify-pattern):
Rename from 'rust-ts-mode--fontify-parameter'.  Check the id node's
parent to avoid touching type identifiers.
lisp/progmodes/rust-ts-mode.el