blob: e2259b688e69370b6ee71afa161fb4e05f5a5771 (
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
|
; Gleam indents similar to Rust and JavaScript
[
(assert)
(case)
(case_clause)
(constant)
(expression_group)
(external_function)
(function)
(import)
(let)
(list)
(public_constant)
(public_external_function)
(public_function)
(public_opaque_type_definition)
(public_type_alias)
(public_type_definition)
(todo)
(try)
(tuple)
(type_alias)
(type_definition)
] @indent
[
")"
"]"
"}"
] @indent_end @branch
; Gleam pipelines are not indented, but other binary expression chains are
((binary_expression operator: _ @_operator) @indent (#not-eq? @_operator "|>"))
|