locals(Go): add namespace definition for import_spec_list

This would define `foo`
```go
import (
	foo "fmt"
)
```
This commit is contained in:
Stephan Seitz 2021-04-13 01:22:22 +02:00 committed by Thomas Vigouroux
parent 615afe3541
commit eb742e304a

View file

@ -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)