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

29 lines
510 B
Scheme
Raw Normal View History

2023-02-20 17:55:06 +01:00
[
(ast_block)
(json_array)
(json_object)
(parenthesized_expression)
] @indent.begin
2023-02-20 17:55:06 +01:00
; 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 ")"))
2024-01-06 15:05:50 +09:00
[
")"
"}"
"]"
] @indent.end @indent.branch
2023-02-20 17:55:06 +01:00
; I do not know what/when this should be added.
; Commenting this out for now
; [
; "("
; "{"
; "["
; ] @indent.branch
2023-02-20 17:55:06 +01:00
[
2024-01-06 15:05:50 +09:00
(ERROR)
(comment)
] @indent.auto