aboutsummaryrefslogtreecommitdiffstats
path: root/queries/query/indents.scm
blob: d1cdb3eef7f6fcb531e5e7ed58125c6037995dd7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[
  (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)