blob: a8fa961d5b501382306e771c1ab92a4de63c625a (
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
|
; Gleam indents similar to Rust and JavaScript
[
(anonymous_function)
(assert)
(case)
(case_clause)
(constant)
(external_function)
(function)
(let)
(list)
(type_definition)
(type_alias)
(todo)
(tuple)
(unqualified_imports)
] @indent.begin
[
")"
"]"
"}"
] @indent.end @indent.branch
; Gleam pipelines are not indented, but other binary expression chains are
((binary_expression
operator: _ @_operator) @indent.begin
(#not-eq? @_operator "|>"))
|