nvim-treesitter/queries/wgsl/indents.scm

20 lines
337 B
Scheme
Raw Normal View History

2022-08-31 00:23:49 +02:00
[
(parameter_list)
(compound_statement)
(loop_statement)
(struct_declaration)
] @indent.begin
2022-08-31 00:23:49 +02:00
(compound_statement "}" @indent.end)
(loop_statement "}" @indent.end)
(function_declaration ")" @indent.end)
(struct_declaration "}" @indent.end)
2022-08-31 00:23:49 +02:00
[
"else"
")"
"}"
] @indent.branch
2022-08-31 00:23:49 +02:00
[(line_comment) (block_comment)] @indent.auto