Update Capnp (#4713)

* feat(capnp): update queries from upstream changes

* test: add tests for capnp

* fix indent queries

* ci: fix capnp indent tests

---------

Co-authored-by: Pham Huy Hoang <hoangtun0810@gmail.com>
This commit is contained in:
Amaan Qureshi 2023-05-06 11:12:49 -04:00 committed by GitHub
parent e8081bb162
commit 12453e0e3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 1787 additions and 52 deletions

View file

@ -1,6 +1,6 @@
[
(annotation_targets)
(const_list)
(const)
(enum)
(interface)
(implicit_generics)
@ -9,26 +9,28 @@
(method_parameters)
(named_return_types)
(struct)
(struct_shorthand)
(union)
(field)
] @indent.begin
((struct_shorthand (property)) @indent.align
(#set! indent.open_delimiter "(")
(#set! indent.close_delimiter ")"))
((method (field_version)) @indent.align
(#set! indent.open_delimiter field_version))
((const_list (const_value)) @indent.align
(#set! indent.open_delimiter "(")
(#set! indent.close_delimiter ")"))
(#set! indent.open_delimiter "[")
(#set! indent.close_delimiter "]"))
(concatenated_string) @indent.align
[
"}"
")"
] @indent.end
] @indent.end @indent.branch
[ "{" "}" ] @indent.branch
[ "(" ")" ] @indent.branch
[
(ERROR)