aboutsummaryrefslogtreecommitdiffstats
path: root/queries/elixir/indents.scm
blob: 5470b6422225991aa131cf3fcbdc0b8e6a9f27e4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
[
  (block)
  (do_block)
  (list)
  (map)
  (stab_clause)
  (tuple)
  (arguments)
] @indent.begin

[
  ")"
  "]"
  "after"
  "catch"
  "else"
  "rescue"
  "}"
  "end"
] @indent.end @indent.branch

; Elixir pipelines are not indented, but other binary operator chains are
((binary_operator
  operator: _ @_operator) @indent.begin
  (#not-eq? @_operator "|>"))