aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/query/indents.scm
blob: 5cea97e1e6850203fbb2a751b6dd640bd0ff92b7 (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
[
  (list)
  (named_node)
  (grouping)
  (predicate)
  "["
] @indent.begin

; ERROR node indents
(ERROR
  "(") @indent.begin

"]" @indent.branch @indent.end

[
  ")"
  "?"
  "*"
  "+"
] @indent.end

; Captures always mark the end of a node
; Because of that, mark it as indent.end
(capture
  name: (identifier) @indent.end)