summaryrefslogtreecommitdiff
path: root/queries/r/indents.scm
blob: 66e1e989bda05f0fa13b841c26403ef8f6090a67 (plain)
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
26
27
28
29
30
[
  (brace_list)
  (paren_list)
  (special)
  (pipe)
  (call)
  "|>"
  "if"
  "else"
  "while"
  "repeat"
  "for"
] @indent

[
  "}"
  ")"
] @branch

((formal_parameters (identifier)) @aligned_indent
 (#set! "delimiter" "()"))

[
  ")"
  "}"
] @indent_end

[
  (comment)
] @ignore