aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/cue/locals.scm
blob: b2a8972f7e9016b441d308753ac75fe5acdf7fb2 (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
; Scopes
[
  (source_file)
  (field)
  (for_clause)
] @local.scope

; References
(identifier) @local.reference

; Definitions
(import_spec
  path: (string) @local.definition.import)

(field
  (label
    (identifier) @local.definition.field))

(package_identifier) @local.definition.namespace

(for_clause
  (identifier) @local.definition.var
  (expression))

(for_clause
  (identifier)
  (identifier) @local.definition.var
  (expression))

(let_clause
  (identifier) @local.definition.var)