nvim-treesitter/runtime/queries/elixir/indents.scm

26 lines
359 B
Scheme
Raw Normal View History

2021-05-14 21:23:58 +02:00
[
2022-02-06 14:13:56 -08:00
(block)
2021-05-14 21:23:58 +02:00
(do_block)
(list)
(map)
2022-02-06 14:13:56 -08:00
(stab_clause)
2021-10-06 14:36:22 -07:00
(tuple)
2022-02-06 14:13:56 -08:00
(arguments)
] @indent.begin
2021-05-14 21:23:58 +02:00
[
")"
"]"
2022-02-06 14:13:56 -08:00
"after"
"catch"
"else"
"rescue"
2021-10-06 14:36:22 -07:00
"}"
2022-02-06 14:13:56 -08:00
"end"
] @indent.end @indent.branch
2022-02-06 14:13:56 -08:00
; Elixir pipelines are not indented, but other binary operator chains are
2024-01-06 15:05:50 +09:00
((binary_operator
operator: _ @_operator) @indent.begin
(#not-eq? @_operator "|>"))