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
; Scopes

(func_def) @local.scope

; Definitions

; awk has no local declarations; extra params are the idiom for locals.
(func_def
  (param_list
    (identifier) @local.definition.variable.parameter))

; References

(identifier) @local.reference

; Function names in call position are not variable references.
(func_call
  name: (identifier) @_)