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
27
28
29
30
31
32
33
34
35
36
37
; This file tells us about the scope of variables so e.g. local
; variables override global functions with the same name

; Scope

(recipe) @local.scope

; Definitions

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

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

(mod
  name: (identifier) @local.definition.namespace)

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

(recipe
  name: (identifier) @local.definition.function)

; References

(alias
  name: (identifier) @local.reference)

(function_call
  name: (identifier) @local.reference)

(recipe_dependency
  name: (identifier) @local.reference)

(value
  (identifier) @local.reference)