mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
locals(Go): add namespace definition for import_spec_list
This would define `foo` ```go import ( foo "fmt" ) ```
This commit is contained in:
parent
615afe3541
commit
eb742e304a
1 changed files with 4 additions and 0 deletions
|
|
@ -41,6 +41,10 @@
|
|||
(package_clause
|
||||
(package_identifier) @definition.namespace)
|
||||
|
||||
(import_spec_list
|
||||
(import_spec
|
||||
name: (package_identifier) @definition.namespace))
|
||||
|
||||
;; Call references
|
||||
((call_expression
|
||||
function: (identifier) @reference)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue