feat(capnp): improve queries

This commit is contained in:
Amaan Qureshi 2023-02-21 02:13:55 -05:00 committed by ObserverOfTime
parent ba35d094c1
commit 454876fc6d
5 changed files with 150 additions and 21 deletions

34
queries/capnp/indents.scm Normal file
View file

@ -0,0 +1,34 @@
[
(annotation_targets)
(const_list)
(enum)
(interface)
(implicit_generics)
(generics)
(group)
(method_parameters)
(named_return_types)
(struct)
(struct_shorthand)
(union)
] @indent
((struct_shorthand (property)) @aligned_indent
(#set! "delimiter" "()"))
((const_list (const_value)) @aligned_indent
(#set! "delimiter" "[]"))
[
"}"
")"
] @indent_end
[ "{" "}" ] @branch
[ "(" ")" ] @branch
[
(ERROR)
(comment)
] @auto