nvim-treesitter/queries/wgsl/indents.scm

30 lines
354 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
2024-01-06 15:05:50 +09: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
2024-01-06 15:05:50 +09:00
[
(line_comment)
(block_comment)
] @indent.auto