fix(locals): add shorthand identifiers as references and definitions

This commit is contained in:
Steven Sojka 2020-08-14 06:55:17 -05:00 committed by Thomas Vigouroux
parent 187dc8e3f5
commit e5434fc21e

View file

@ -20,6 +20,11 @@
(object_pattern
(identifier) @definition.var))
; function(arg = []) {
(formal_parameters
(assignment_pattern
(shorthand_property_identifier) @definition.var))
(formal_parameters
(object_pattern
(shorthand_property_identifier) @definition.var))
@ -42,4 +47,4 @@
;------------
(identifier) @reference
(shorthand_property_identifier) @reference