mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -04:00
Add call references for Go
This commit is contained in:
parent
452447694a
commit
5a096cb3f1
1 changed files with 17 additions and 0 deletions
|
|
@ -32,6 +32,23 @@
|
||||||
(type_identifier) @reference
|
(type_identifier) @reference
|
||||||
(field_identifier) @reference
|
(field_identifier) @reference
|
||||||
|
|
||||||
|
;; Call references
|
||||||
|
(call_expression
|
||||||
|
function: (identifier) @reference.call) @call
|
||||||
|
|
||||||
|
(call_expression
|
||||||
|
function: (selector_expression
|
||||||
|
field: (field_identifier) @reference.call)) @call
|
||||||
|
|
||||||
|
(call_expression
|
||||||
|
function: (parenthesized_expression
|
||||||
|
(identifier) @reference.call)) @call
|
||||||
|
|
||||||
|
(call_expression
|
||||||
|
function: (parenthesized_expression
|
||||||
|
(selector_expression
|
||||||
|
field: (field_identifier) @reference.call))) @call
|
||||||
|
|
||||||
;; Scopes
|
;; Scopes
|
||||||
|
|
||||||
(source_file) @scope
|
(source_file) @scope
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue