blob: 579c665bc109dd9cc4ea1ac868ad515e8f27a03e (
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
36
37
38
39
40
41
42
43
|
[
(compound_statement)
(loop_statement)
(struct_declaration)
(type_constructor_or_function_call_expression)
] @indent.begin
((parameter_list) @indent.begin
(#set! indent.immediate)
(#set! indent.start_at_same_line))
(function_declaration
"(" @indent.begin
(#set! indent.immediate))
(ERROR
"fn"
(identifier)
"(" @indent.begin
(#set! indent.immediate))
(compound_statement
"}" @indent.end)
(loop_statement
"}" @indent.end)
(function_declaration
")" @indent.end)
(struct_declaration
"}" @indent.end)
[
"else"
")"
"}"
] @indent.branch
[
(line_comment)
(block_comment)
] @indent.auto
|