summaryrefslogtreecommitdiff
path: root/runtime/queries/hare/locals.scm
blob: b8b9b9f71420219c8e045c343c7e1764e96ebb4e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
(unit) @local.scope

(function_declaration) @local.scope

(global_binding
  (identifier) @local.definition)
(constant_binding 
  (identifier) @local.definition)
(type_bindings
  (identifier) @local.definition)

(function_declaration
  (prototype
    (parameter_list
      (parameters
        (parameter
          (name) @local.definition)))))

(identifier) @local.reference