nvim-treesitter/queries/yuck/indents.scm

27 lines
422 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
; TODO: can't get this to work, goal is to indent at the property ":" prefix
; ((list (identifier) (property)) @aligned_indent
; (#set! "open_delimiter" "(")
; (#set! "close_delimiter" ")"))
2023-02-20 17:55:06 +01:00
[")" "}" "]"] @indent_end
[ "{" "}" ] @branch
[ "(" ")" ] @branch
[ "[" "]" ] @branch
[
(ERROR)
(comment)
] @auto