mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-09 15:00:04 -04:00
* fix(format): newline between top-level field defs * fixup: newline between node and comment * fixup: optimize pattern
38 lines
485 B
Scheme
38 lines
485 B
Scheme
[
|
|
(ast_block)
|
|
(array)
|
|
(expr)
|
|
(json_array)
|
|
(json_object)
|
|
(parenthesized_expression)
|
|
] @indent.begin
|
|
|
|
; TODO: can't get this to work, goal is to indent at the property ":" prefix
|
|
; ((list (identifier) (property)) @indent.align
|
|
; (#set! indent.open_delimiter "(")
|
|
; (#set! indent.close_delimiter ")"))
|
|
[
|
|
")"
|
|
"}"
|
|
"]"
|
|
] @indent.end
|
|
|
|
[
|
|
"{"
|
|
"}"
|
|
] @indent.branch
|
|
|
|
[
|
|
"("
|
|
")"
|
|
] @indent.branch
|
|
|
|
[
|
|
"["
|
|
"]"
|
|
] @indent.branch
|
|
|
|
[
|
|
(ERROR)
|
|
(comment)
|
|
] @indent.auto
|