mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 01:40:02 -04:00
fix(locals): add js namespace import as definition
This commit is contained in:
parent
47b45ff883
commit
a8ec43da64
1 changed files with 3 additions and 0 deletions
|
|
@ -43,6 +43,9 @@
|
||||||
(import_specifier
|
(import_specifier
|
||||||
(identifier) @definition.import)
|
(identifier) @definition.import)
|
||||||
|
|
||||||
|
(namespace_import
|
||||||
|
(identifier) @definition.import)
|
||||||
|
|
||||||
(function_declaration
|
(function_declaration
|
||||||
((identifier) @definition.var)
|
((identifier) @definition.var)
|
||||||
(#set! definition.var.scope parent))
|
(#set! definition.var.scope parent))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue