blob: cc5359308c77ae4448b39b2211976165548229d5 (
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
|
; Vendored from helix (https://github.com/helix-editor/helix) at 278b24389:
; runtime/queries/elixir/indents.scm.
; Licensed under the Mozilla Public License 2.0 (vendor/queries/helix.LICENSE,
; https://mozilla.org/MPL/2.0/).
[
(anonymous_function)
(do_block)
(stab_clause)
(map)
(list)
(tuple)
] @indent
; The else/rescue/catch/after clause blocks nest *inside* the do_block, which
; already provides the body's one level of indent; the keyword itself outdents
; back to the construct's level.
[
"end"
"else"
"rescue"
"catch"
"after"
"]"
"}"
")"
] @outdent
|