mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -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)
|
||||
(list)
|
||||
(map)
|
||||
(stab_clause)
|
||||
(tuple)
|
||||
(arguments)
|
||||
] @indent
|
||||
|
||||
[
|
||||
")"
|
||||
"]"
|
||||
"end"
|
||||
"after"
|
||||
"catch"
|
||||
"else"
|
||||
"rescue"
|
||||
"}"
|
||||
(after_block)
|
||||
(else_block)
|
||||
(rescue_block)
|
||||
(catch_block)
|
||||
] @branch
|
||||
"end"
|
||||
] @indent_end @branch
|
||||
|
||||
; Elixir pipelines are not indented, but other binary operator chains are
|
||||
((binary_operator operator: _ @_operator) @indent (#not-eq? @_operator "|>"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue