mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 21:40:03 -04:00
* feat(query): indents that reflect the formatter Indentation queries that reflect the query formatter. Only applicable if `lispoptions=expr:1`
20 lines
330 B
Scheme
20 lines
330 B
Scheme
[
|
|
(list)
|
|
(named_node)
|
|
(grouping)
|
|
(predicate) ; WIP to newline wrap any-of?
|
|
"["
|
|
] @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)
|