nvim-treesitter/queries/capnp/indents.scm
George Harker cb568af539 use indent.X syntax for captures and properties of set directives
update CONTRIBUTING.md

adjust indents for bass

fix doc capture comment
2023-03-24 13:07:53 -04:00

36 lines
573 B
Scheme

[
(annotation_targets)
(const_list)
(enum)
(interface)
(implicit_generics)
(generics)
(group)
(method_parameters)
(named_return_types)
(struct)
(struct_shorthand)
(union)
] @indent.begin
((struct_shorthand (property)) @indent.align
(#set! indent.open_delimiter "(")
(#set! indent.close_delimiter ")"))
((const_list (const_value)) @indent.align
(#set! indent.open_delimiter "(")
(#set! indent.close_delimiter ")"))
[
"}"
")"
] @indent.end
[ "{" "}" ] @indent.branch
[ "(" ")" ] @indent.branch
[
(ERROR)
(comment)
] @indent.auto