Update zig tree-sitter (#1501)

use latest upstream version
move comptime from @keyword.function to @keyword.directive
use AssignOp
enhance indents
imgbot
voroskoi 3 years ago committed by GitHub
parent ac6b2de0fd
commit 6bfd001b48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1 +1 @@
Subproject commit 1f27fd1dfe7f352408f01b4894c7825f3a1d6c47 Subproject commit 93331b8bd8b4ebee2b575490b2758f16ad4e9f30

@ -144,7 +144,6 @@ field_constant: (IDENTIFIER) @constant
; VarDecl ; VarDecl
[ [
"comptime"
"threadlocal" "threadlocal"
"fn" "fn"
] @keyword.function ] @keyword.function
@ -178,6 +177,7 @@ field_constant: (IDENTIFIER) @constant
; PrecProc ; PrecProc
[ [
"comptime"
"inline" "inline"
"noinline" "noinline"
"asm" "asm"
@ -195,15 +195,14 @@ field_constant: (IDENTIFIER) @constant
(BitwiseOp) (BitwiseOp)
(BitShiftOp) (BitShiftOp)
(AdditionOp) (AdditionOp)
(AssignOp)
(MultiplyOp) (MultiplyOp)
(PrefixOp) (PrefixOp)
"*" "*"
"**" "**"
"->" "->"
"=>"
".?" ".?"
".*" ".*"
"="
"?" "?"
] @operator ] @operator

@ -3,6 +3,9 @@ indent = [
"BlockExpr", "BlockExpr",
"ContainerDecl", "ContainerDecl",
"SwitchExpr", "SwitchExpr",
"AssignExpr",
"ErrorUnionExpr",
"Statement",
"InitList" "InitList"
] ]

Loading…
Cancel
Save