fix: Update to latest zig grammar
This commit is contained in:
parent
99a0e7811d
commit
4b2e9b44f6
2 changed files with 2 additions and 3 deletions
|
@ -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]
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue