nvim-treesitter/queries/zig/indents.scm
maxxnino f76737ee33 Zig queries: highlight, fold and indent
* fold for if/while/for
 * highlight "_" for ignore variable
 * highlight "c" for PtrTypeStart
 * highlight "?" for optional type
 * remove duplicate query node in indent
2021-09-20 11:46:24 +02:00

22 lines
204 B
Scheme

[
(Block)
(ContainerDecl)
(SwitchExpr)
(InitList)
] @indent
[
"("
")"
"["
"]"
"{"
"}"
] @branch
[
(line_comment)
(container_doc_comment)
(doc_comment)
(LINESTRING)
] @ignore