nvim-treesitter/queries/t32/locals.scm
Christoph Sax 2fb7359828 feat(t32)!: update queries for new HLL node types
- Lock grammar to version 2.1.1
- Update query for syntax hightlighting
- fix missing locals query
- reduce number of "(identifier) @variable" highlight queries
- revert to capture @function.builtin for PRACTICE call expressions
2023-07-30 19:29:33 +02:00

38 lines
749 B
Scheme

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