mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-13 17:00:09 -04:00
Added Zig grammar
This commit is contained in:
parent
74234bc0e0
commit
597ec69378
7 changed files with 266 additions and 0 deletions
30
queries/zig/indents.scm
Normal file
30
queries/zig/indents.scm
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
[
|
||||
(block)
|
||||
(comptime_block)
|
||||
(defer_block)
|
||||
(suspend_block)
|
||||
(resume_block)
|
||||
(if_expression)
|
||||
(while_expression)
|
||||
(for_expression)
|
||||
(test_expression)
|
||||
(struct_expression)
|
||||
(struct_construction)
|
||||
(anonymous_struct_enum)
|
||||
(enum_expression)
|
||||
(union_expression)
|
||||
] @indent
|
||||
|
||||
[
|
||||
"("
|
||||
")"
|
||||
"["
|
||||
"]"
|
||||
"{"
|
||||
"}"
|
||||
] @branch
|
||||
|
||||
[
|
||||
(line_comment)
|
||||
(multiline_string_literal)
|
||||
] @ignore
|
||||
Loading…
Add table
Add a link
Reference in a new issue