aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/just/locals.scm
blob: 80549f35b24140bae5609516374b67e8d1fea5b0 (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
32
33
34
35
; Source: https://github.com/IndianBoy42/tree-sitter-just/blob/main/queries/just/locals.scm
; Scope
(recipe) @local.scope

; Definitions
(alias
  left: (identifier) @local.definition.var)

(assignment
  left: (identifier) @local.definition.var)

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

(parameter
  name: (identifier) @local.definition.var)

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

; References
(alias
  right: (identifier) @local.reference)

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

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

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

(value
  (identifier) @local.reference)