File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ((if_expression
2+ "if" @open.if
3+ (then_clause
4+ "then" @mid.if. 2)) @scope.if
5+ (#not-has-parent? @scope.if else_clause))
6+
7+ (else_clause
8+ "else" @mid.if. 1
9+ (if_expression
10+ "if" @mid.if. 2
11+ (then_clause
12+ "then" @mid.if. 2))?)
13+
14+ (parenthesized_expression
15+ "begin" @open.begin
16+ "end" @close.begin ) @scope.begin
17+
18+ (module_definition
19+ (module_binding
20+ (structure
21+ "struct" @open.class
22+ "end" @close.class ))) @scope.class
23+
24+ (for_expression
25+ "for" @open.loop
26+ ("to")? @mid.loop. 1
27+ ("downto")? @mid.loop. 1
28+ (do_clause
29+ "do" @mid.loop. 2
30+ "done" @close.loop )) @scope.loop
31+
32+ (while_expression
33+ "while" @open.loop
34+ (do_clause
35+ "do" @mid.loop. 1
36+ "done" @close.loop )) @scope.loop
37+
38+ (match_expression
39+ "match" @open.case
40+ "with" @mid.case. 1
41+ "|" @mid.case. 2) @scope.case
42+
43+ (try_expression
44+ "try" @open.try
45+ "with" @mid.try. 1) @scope.try
You can’t perform that action at this time.
0 commit comments