nvim-treesitter/runtime/queries/elixir/indents.scm
2025-05-12 18:43:40 +02:00

25 lines
359 B
Scheme

[
(block)
(do_block)
(list)
(map)
(stab_clause)
(tuple)
(arguments)
] @indent.begin
[
")"
"]"
"after"
"catch"
"else"
"rescue"
"}"
"end"
] @indent.end @indent.branch
; Elixir pipelines are not indented, but other binary operator chains are
((binary_operator
operator: _ @_operator) @indent.begin
(#not-eq? @_operator "|>"))