summaryrefslogtreecommitdiff
path: root/stag/src/stag.scm
blob: b6271b8e619a21552a57ef0cfd10dbb726bb3a50 (plain)
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
[
 (block)
 (declaration_list)
 (impl_item)
 (struct_item)
 (enum_item)
 (union_item)
 (type_item)
 (trait_item)
 (if_expression
   [(let_condition)
    (let_chain)])
 ] @cap
{
  (scope (range @cap))
}

(function_item
  (parameters) @params
  (block) @body)
{
  (scope (cover @params @body))
}


(let_declaration 
  pattern: (identifier) @cap)
{
  (def @cap)
}


(binary_expression (identifier) @c) {
  (ref @c)
}