nvim-treesitter/queries/yuck/indents.scm

27 lines
464 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 ")"))
2023-02-20 17:55:06 +01:00
[")" "}" "]"] @indent.end
2023-02-20 17:55:06 +01:00
[ "{" "}" ] @indent.branch
2023-02-20 17:55:06 +01:00
[ "(" ")" ] @indent.branch
2023-02-20 17:55:06 +01:00
[ "[" "]" ] @indent.branch
2023-02-20 17:55:06 +01:00
[
(ERROR)
(comment)
] @indent.auto