nvim-treesitter/queries/yuck/indents.scm

39 lines
485 B
Scheme
Raw Normal View History

2023-02-20 17:55:06 +01:00
[
(ast_block)
(array)
(expr)
(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
2023-02-20 17:55:06 +01:00
2024-01-06 15:05:50 +09:00
[
"{"
"}"
] @indent.branch
2023-02-20 17:55:06 +01:00
2024-01-06 15:05:50 +09:00
[
"("
")"
] @indent.branch
2023-02-20 17:55:06 +01:00
2024-01-06 15:05:50 +09:00
[
"["
"]"
] @indent.branch
2023-02-20 17:55:06 +01:00
[
2024-01-06 15:05:50 +09:00
(ERROR)
(comment)
] @indent.auto