]> 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)
committerEshel Yaron <me@eshelyaron.com>
Sat, 9 Dec 2023 19:12:35 +0000 (20:12 +0100)
commit62b193a8e4c0f542e4d87802535da4efdc8ce75d
tree00d7b729b742ee711799e3e4b3f3a60fc443b122
parente618687cb8b589184e749390b46b950d6dc8319e
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