mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 02:40:09 -04:00
fix(locals): add shorthand identifiers as references and definitions
This commit is contained in:
parent
187dc8e3f5
commit
e5434fc21e
1 changed files with 6 additions and 1 deletions
|
|
@ -20,6 +20,11 @@
|
||||||
(object_pattern
|
(object_pattern
|
||||||
(identifier) @definition.var))
|
(identifier) @definition.var))
|
||||||
|
|
||||||
|
; function(arg = []) {
|
||||||
|
(formal_parameters
|
||||||
|
(assignment_pattern
|
||||||
|
(shorthand_property_identifier) @definition.var))
|
||||||
|
|
||||||
(formal_parameters
|
(formal_parameters
|
||||||
(object_pattern
|
(object_pattern
|
||||||
(shorthand_property_identifier) @definition.var))
|
(shorthand_property_identifier) @definition.var))
|
||||||
|
|
@ -42,4 +47,4 @@
|
||||||
;------------
|
;------------
|
||||||
|
|
||||||
(identifier) @reference
|
(identifier) @reference
|
||||||
|
(shorthand_property_identifier) @reference
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue