nvim-treesitter/runtime/queries/query/indents.scm

26 lines
324 B
Scheme
Raw Normal View History

2021-02-23 10:19:01 -05:00
[
(list)
(named_node)
(grouping)
(predicate)
2021-02-23 10:19:01 -05:00
"["
] @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)