blob: 433a01e8fbe71202073a09173e2aa6b721a5d4e8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
(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
|