Debian Codegraph @

runtime/queries/ponylang/locals.scm

raw symbols SCIP
1 [
2 (entity)
3 (method)
4 (behavior)
5 (constructor)
6 ("if")
7 (elseif)
8 (ifdef)
9 (elseifdef)
10 (iftype)
11 (elseiftype)
12 (match)
13 (match_case)
14 ("while")
15 ("repeat")
16 ("for")
17 (lambda)
18 (try_block)
19 (with)
20 ] @local.scope
21 (match else_block: (block) @local.scope)
22 (try_block else_block: (block) @local.scope)
23 (try_block then_block: (block) @local.scope)
24 (with else_block: (block) @local.scope)
25
26 (param name: (identifier) @local.definition.variable.parameter)
27 (lambdaparam name: (identifier) @local.definition.variable.parameter)
28
29 ; only lower case identifiers are references
30 (
31 (identifier) @local.reference
32 (#match? @local.reference "^[a-z_][a-zA-Z_]*")
33 )