mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 03:40:04 -04:00
Fix Elixir indents to match mix format
This commit is contained in:
parent
4990db79a8
commit
5045086793
1 changed files with 12 additions and 7 deletions
|
|
@ -1,18 +1,23 @@
|
||||||
[
|
[
|
||||||
(arguments)
|
(block)
|
||||||
(do_block)
|
(do_block)
|
||||||
(list)
|
(list)
|
||||||
(map)
|
(map)
|
||||||
|
(stab_clause)
|
||||||
(tuple)
|
(tuple)
|
||||||
|
(arguments)
|
||||||
] @indent
|
] @indent
|
||||||
|
|
||||||
[
|
[
|
||||||
")"
|
")"
|
||||||
"]"
|
"]"
|
||||||
"end"
|
"after"
|
||||||
|
"catch"
|
||||||
|
"else"
|
||||||
|
"rescue"
|
||||||
"}"
|
"}"
|
||||||
(after_block)
|
"end"
|
||||||
(else_block)
|
] @indent_end @branch
|
||||||
(rescue_block)
|
|
||||||
(catch_block)
|
; Elixir pipelines are not indented, but other binary operator chains are
|
||||||
] @branch
|
((binary_operator operator: _ @_operator) @indent (#not-eq? @_operator "|>"))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue