Unnamed repository; edit this file 'description' to name the repository.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; Scopes

(function_definition) @local.scope

; Definitions

; `set`/`read` bindings aren't a dedicated node (the name is an untyped `word`
; argument), so only the for-loop variable is reliably a definition.
(for_statement
  variable: (variable_name) @local.definition.variable)

; References

(variable_name) @local.reference