mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 03:56:52 -04:00
* 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>
38 lines
642 B
Scheme
38 lines
642 B
Scheme
[
|
|
(annotation_targets)
|
|
(const)
|
|
(enum)
|
|
(interface)
|
|
(implicit_generics)
|
|
(generics)
|
|
(group)
|
|
(method_parameters)
|
|
(named_return_types)
|
|
(struct)
|
|
(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 "]"))
|
|
|
|
(concatenated_string) @indent.align
|
|
|
|
[
|
|
"}"
|
|
")"
|
|
] @indent.end @indent.branch
|
|
|
|
|
|
[
|
|
(ERROR)
|
|
(comment)
|
|
] @indent.auto
|