nvim-treesitter/queries/t32/locals.scm
2024-01-19 16:58:37 +01:00

38 lines
797 B
Scheme

(block) @local.scope
; Parameter definitions
(parameter_declaration
command: (identifier)
macro: (macro) @local.definition.parameter)
; Variable definitions
(macro_definition
command: (identifier)
macro: (macro) @local.definition.var)
(command_expression
command: (identifier)
arguments: (argument_list
declarator: (trace32_hll_variable) @local.definition.var))
; Function definitions
(subroutine_block
command: (identifier)
subroutine: (identifier) @local.definition.function)
(labeled_expression
label: (identifier) @local.definition.function
(block))
; References
(
(subroutine_call_expression
command: (identifier)
subroutine: (identifier) @local.reference)
(#set! reference.kind "function")
)
[
(macro)
(trace32_hll_variable)
] @local.reference