mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 10:20:11 -04:00
feat(ecma): variable definition from object destructure (#8233)
This commit is contained in:
parent
65a266bf69
commit
53049d6678
1 changed files with 4 additions and 0 deletions
|
|
@ -21,6 +21,10 @@
|
||||||
(variable_declarator
|
(variable_declarator
|
||||||
name: (identifier) @local.definition.var)
|
name: (identifier) @local.definition.var)
|
||||||
|
|
||||||
|
(variable_declarator
|
||||||
|
name: (object_pattern
|
||||||
|
(shorthand_property_identifier_pattern) @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