mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 03:10:04 -04:00
30 lines
722 B
Scheme
30 lines
722 B
Scheme
|
|
((function_declaration
|
||
|
|
name: (identifier) @definition.function)) ;@function
|
||
|
|
|
||
|
|
(short_var_declaration
|
||
|
|
left: (expression_list
|
||
|
|
(identifier) @definition.var))
|
||
|
|
|
||
|
|
((function_declaration
|
||
|
|
name: (binded_identifier
|
||
|
|
name: (identifier) @definition.function)))
|
||
|
|
|
||
|
|
(const_declaration (const_spec (identifier) @definition.var))
|
||
|
|
|
||
|
|
(identifier) @reference
|
||
|
|
(type_identifier) @reference
|
||
|
|
|
||
|
|
((call_expression function: (identifier) @reference)
|
||
|
|
(set! reference.kind "call"))
|
||
|
|
|
||
|
|
((call_expression
|
||
|
|
function: (selector_expression
|
||
|
|
field: (identifier) @function))
|
||
|
|
(set! reference.kind "call"))
|
||
|
|
|
||
|
|
(source_file) @scope
|
||
|
|
(function_declaration) @scope
|
||
|
|
(if_expression) @scope
|
||
|
|
(block) @scope
|
||
|
|
(for_statement) @scope
|