mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
22 lines
429 B
Scheme
22 lines
429 B
Scheme
(source_file) @local.scope
|
|
|
|
; The content of a function is a scope, not the whole function block.
|
|
; Else, the function is defined inside itself
|
|
(function
|
|
.
|
|
(function_name)
|
|
.
|
|
(_) @local.scope)
|
|
|
|
(function
|
|
.
|
|
(function_name) @local.definition.function)
|
|
|
|
(assignment
|
|
(variable_name) @local.definition.var)
|
|
|
|
(variable_name) @local.reference
|
|
|
|
((handler
|
|
(function_name) @local.reference)
|
|
(#set! reference.kind "call"))
|