mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 11:06:54 -04:00
`trace32_hll_variable` has been removed from the grammar. The queries are now capturing `symbol` instead. `symbol` is highlighted as variable or constant.
36 lines
761 B
Scheme
36 lines
761 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: (symbol) @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)
|
|
(symbol)
|
|
] @local.reference
|