feat: add yuck

This commit is contained in:
Philipp Mildenberger 2023-02-20 17:55:06 +01:00 committed by Amaan Qureshi
parent 04b87c7b6e
commit b9a7591b6c
8 changed files with 278 additions and 0 deletions

25
queries/yuck/indents.scm Normal file
View file

@ -0,0 +1,25 @@
[
(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! "delimiter" ":"))
[")" "}" "]"] @indent_end
[ "{" "}" ] @branch
[ "(" ")" ] @branch
[ "[" "]" ] @branch
[
(ERROR)
(comment)
] @auto