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)
|
2023-03-20 14:44:39 -07:00
|
|
|
] @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"
|
2023-03-20 14:44:39 -07:00
|
|
|
] @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 "|>"))
|