nvim-treesitter/runtime/queries/streamdevice_proto/locals.scm
2025-12-23 18:24:23 +01:00

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"))