fix: Update to latest zig grammar

This commit is contained in:
FalsePattern 2024-03-15 16:49:47 +01:00
parent 99a0e7811d
commit 4b2e9b44f6
Signed by: falsepattern
GPG key ID: E930CDEC50C50E23
2 changed files with 2 additions and 3 deletions

View file

@ -31,6 +31,7 @@ Changelog structure reference:
- Zig - Zig
- Indent support for function parameters and struct initializers - Indent support for function parameters and struct initializers
- Updated to latest grammar spec (https://github.com/ziglang/zig-spec/commit/78c2e2e5cfa7090965deaf631cb8ca6f405b7c42)
## [13.0.1] ## [13.0.1]

View file

@ -188,9 +188,7 @@ VarDeclProto ::= (KEYWORD_CONST | KEYWORD_VAR) IDENTIFIER (COLON TypeExpr)? Byte
GlobalVarDecl ::= VarDeclProto (EQUAL Expr)? SEMICOLON GlobalVarDecl ::= VarDeclProto (EQUAL Expr)? SEMICOLON
ContainerField ContainerField ::= DOC_COMMENT? KEYWORD_COMPTUME? !KEYWORD_FN (IDENTIFIER COLON)? TypeExpr ByteAlign? (EQUAL Expr)?
::= DOC_COMMENT? KEYWORD_COMPTIME? IDENTIFIER (COLON (KEYWORD_ANYTYPE | TypeExpr) ByteAlign?)? (EQUAL Expr)?
| DOC_COMMENT? KEYWORD_COMPTIME? (IDENTIFIER COLON)? !KEYWORD_FN TypeExpr ByteAlign? (EQUAL Expr)?
// *** Block Level *** // *** Block Level ***
Statement Statement