blob: 2173e0292aaf3b2b1f4c0a4753202857336c93ee (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
; Adapted from helix (https://github.com/helix-editor/helix) at 278b24389:
; runtime/queries/zig/indents.scm, MODIFIED for the zig grammar pardes
; builds (maxxnino/tree-sitter-zig), whose node names differ from the
; tree-sitter-grammars one helix uses: block is Block, switch_expression
; SwitchExpr, initializer_list InitList, error_set_declaration ErrorSetDecl,
; and struct/enum/union_declaration are one ContainerDecl.
; Licensed under the Mozilla Public License 2.0 (vendor/queries/helix.LICENSE,
; https://mozilla.org/MPL/2.0/).
[
(Block)
(SwitchExpr)
(InitList)
(ContainerDecl)
(ErrorSetDecl)
] @indent
[
"}"
"]"
")"
] @outdent
|