Added Zig grammar

This commit is contained in:
Himujjal 2021-03-23 06:18:43 +05:30 committed by Stephan Seitz
parent 74234bc0e0
commit 597ec69378
7 changed files with 266 additions and 0 deletions

30
queries/zig/indents.scm Normal file
View 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