1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-28 01:00:05 +08:00
SpaceVim/bundle/nvim-treesitter/queries/elixir/indents.scm

24 lines
336 B
Scheme
Raw Normal View History

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