mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-09 23:10:11 -04:00
24 lines
526 B
Scheme
24 lines
526 B
Scheme
|
|
(var_declaration
|
|
(var (identifier)) @definition.var)
|
|
|
|
(var_assignment
|
|
(var (identifier)) @definition.var)
|
|
|
|
(arg
|
|
name: (identifier) @definition.parameter)
|
|
(typeargs (identifier) @definition.type)
|
|
|
|
;(functiondef) @scope
|
|
((function_statement
|
|
(function_name) @definition.function) @scope
|
|
(#set! definition.function.scope "parent"))
|
|
|
|
(program) @scope
|
|
(if_statement) @scope
|
|
(for_statement (for_body) @scope)
|
|
(repeat_statement) @scope
|
|
(while_statement (while_body) @scope)
|
|
(do_statement) @scope
|
|
|
|
(identifier) @reference
|