mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-10 23:40:04 -04:00
indents(wgsl): add indents.scm
This commit is contained in:
parent
aa736f5f36
commit
27cba73df9
3 changed files with 81 additions and 0 deletions
19
queries/wgsl/indents.scm
Normal file
19
queries/wgsl/indents.scm
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
[
|
||||
(parameter_list)
|
||||
(compound_statement)
|
||||
(loop_statement)
|
||||
(struct_declaration)
|
||||
] @indent
|
||||
|
||||
(compound_statement "}" @indent_end)
|
||||
(loop_statement "}" @indent_end)
|
||||
(function_declaration ")" @indent_end)
|
||||
(struct_declaration "}" @indent_end)
|
||||
|
||||
[
|
||||
"else"
|
||||
")"
|
||||
"}"
|
||||
] @branch
|
||||
|
||||
(comment) @auto
|
||||
Loading…
Add table
Add a link
Reference in a new issue