]> git.eshelyaron.com Git - emacs.git/commit
js-ts-mode: Highlight property shorthands in assignments
authorDmitry Gutov <dmitry@gutov.dev>
Fri, 8 Dec 2023 02:12:21 +0000 (04:12 +0200)
committerDmitry Gutov <dmitry@gutov.dev>
Fri, 8 Dec 2023 02:12:21 +0000 (04:12 +0200)
commit4a72f13bdfb7806b933b5198641938cbf3586611
treeb2dd3b229ac6402b1bd2aba025d6e7cd2b046493
parent83ed9018ede57f6ef0e3645147fdb529490268fc
js-ts-mode: Highlight property shorthands in assignments

* lisp/progmodes/js.el (js--treesit-lhs-identifier-query): Match
property shorthands (which turn into variable reference).
(js--treesit-fontify-assignment-lhs): Use the matches.
lisp/progmodes/js.el