Unnamed repository; edit this file 'description' to name the repository.
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
; Scopes

[
  (declProc)
  (block)
] @local.scope

; Definitions

(declArg
  name: (identifier) @local.definition.variable.parameter)

(declVar
  name: (identifier) @local.definition.variable)

; References

(identifier) @local.reference

; The rhs of `a.b` is a member access, not a variable reference.
(exprDot
  rhs: (identifier) @_)

; Procedure/function names in call position are not variable references.
(exprCall
  entity: (identifier) @_)