Debian Codegraph @

runtime/queries/puppet/locals.scm

raw symbols SCIP
1 ; Scopes
2
3 [
4 (block)
5 (defined_resource_type)
6 (function_declaration)
7 (attribute_type_entry)
8 (class_definition)
9 (node_definition)
10 (resource_declaration)
11 (selector)
12 (iterator_statement)
13 (case_statement)
14 (hash)
15 (array)
16 ] @local.scope
17
18 ; Definitions
19 ;
20 ; Only variables and parameters are tracked: types, functions and namespaces
21 ; already get their correct highlight straight from highlights.scm, and their
22 ; identifier segments are always the innermost node at their position, so
23 ; resolving them again here would have no visible effect.
24
25 (parameter (variable (identifier) @local.definition.variable.parameter))
26
27 (assignment . (variable (identifier) @local.definition.variable))
28
29 ; References
30
31 (identifier) @local.reference
32
33 ; Attribute names are hash-like keys, not variable references.
34 (attribute name: (identifier) @_)