Update zig tree-sitter (#1501)
use latest upstream version
move comptime from @keyword.function to @keyword.directive
use AssignOp
enhance indents
commit6bfd001b485dd27ba5fe3d22d27f021596dce4b8
authorvoroskoi <60064214+voroskoi@users.noreply.github.com>
dateFri 14 Jan 2022, 15:29 (5 years ago)
parentac6b2de
helix-syntax/languages/tree-sitter-zig+1−1
Submodule changed.
runtime/queries/zig/highlights.scm+2−3
@@ -144,7 +144,6 @@ field_constant: (IDENTIFIER) @constant
144144
145145; VarDecl
146146[
147− "comptime"
148147 "threadlocal"
149148 "fn"
150149] @keyword.function
@@ -178,6 +177,7 @@ field_constant: (IDENTIFIER) @constant
178177
179178; PrecProc
180179[
180+ "comptime"
181181 "inline"
182182 "noinline"
183183 "asm"
@@ -195,15 +195,14 @@ field_constant: (IDENTIFIER) @constant
195195 (BitwiseOp)
196196 (BitShiftOp)
197197 (AdditionOp)
198+ (AssignOp)
198199 (MultiplyOp)
199200 (PrefixOp)
200201 "*"
201202 "**"
202203 "->"
203− "=>"
204204 ".?"
205205 ".*"
206− "="
207206 "?"
208207] @operator
209208
runtime/queries/zig/indents.toml+3
@@ -3,6 +3,9 @@ indent = [
33 "BlockExpr",
44 "ContainerDecl",
55 "SwitchExpr",
6+ "AssignExpr",
7+ "ErrorUnionExpr",
8+ "Statement",
69 "InitList"
710]
811