2022-11-06 17:44:50 +01:00
|
|
|
(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
|
2023-07-25 06:12:57 +02:00
|
|
|
declarator: (trace32_hll_variable) @definition.var))
|
2022-11-06 17:44:50 +01:00
|
|
|
|
|
|
|
|
; 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)
|
2023-06-21 09:14:44 +02:00
|
|
|
(#set! reference.kind "function")
|
2022-11-06 17:44:50 +01:00
|
|
|
)
|
|
|
|
|
|
2023-07-25 06:12:57 +02:00
|
|
|
[
|
|
|
|
|
(macro)
|
|
|
|
|
(trace32_hll_variable)
|
|
|
|
|
] @reference
|