mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat(ecma): variable definition from object destructure with alias
This commit is contained in:
parent
b9171ede5d
commit
ae2081cfcd
1 changed files with 5 additions and 0 deletions
|
|
@ -25,6 +25,11 @@
|
||||||
name: (object_pattern
|
name: (object_pattern
|
||||||
(shorthand_property_identifier_pattern) @local.definition.var))
|
(shorthand_property_identifier_pattern) @local.definition.var))
|
||||||
|
|
||||||
|
(variable_declarator
|
||||||
|
(object_pattern
|
||||||
|
(pair_pattern
|
||||||
|
(identifier) @local.definition.var)))
|
||||||
|
|
||||||
(import_specifier
|
(import_specifier
|
||||||
(identifier) @local.definition.import)
|
(identifier) @local.definition.import)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue