nvim-treesitter/queries/query/indents.scm
2024-08-02 22:45:14 +09:00

25 lines
324 B
Scheme

[
(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)