Skip to content

Commit 110ca06

Browse files
davidpa9708ubolonton
authored andcommitted
Fix highlighting of shorthand properties in JS
emacs-tree-sitter/elisp-tree-sitter#92 * update js `shorthand_property_identifier` regexp * updated * update
1 parent 5e099a6 commit 110ca06

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

queries/javascript/highlights.scm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
(pair key: (property_identifier) @property.definition)
6969
(member_expression
7070
property: (property_identifier) @property)
71+
((shorthand_property_identifier) @property.definition)
7172

7273
;; Literals
7374

0 commit comments

Comments
 (0)