mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 03:56:52 -04:00
29 lines
735 B
Scheme
29 lines
735 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) @definition.function))
|
|
(#set! reference.kind "call"))
|
|
|
|
(source_file) @scope
|
|
(function_declaration) @scope
|
|
(if_expression) @scope
|
|
(block) @scope
|
|
(for_statement) @scope
|