mirror of
https://github.com/ziglang/zig.git
synced 2024-11-30 09:02:32 +00:00
Sync grammar with spec
- Remove rule LabeledExpr - Add rule CurlySuffixExpr
This commit is contained in:
parent
5de934810f
commit
06bf918436
@ -9443,8 +9443,6 @@ PrimaryExpr
|
||||
|
||||
IfExpr <- IfPrefix Expr (KEYWORD_else Payload? Expr)?
|
||||
|
||||
LabeledExpr <- BlockLabel? (Block / LoopExpr)
|
||||
|
||||
Block <- LBRACE Statement* RBRACE
|
||||
|
||||
LoopExpr <- KEYWORD_inline? (ForExpr / WhileExpr)
|
||||
@ -9453,6 +9451,8 @@ ForExpr <- ForPrefix Expr (KEYWORD_else Expr)?
|
||||
|
||||
WhileExpr <- WhilePrefix Expr (KEYWORD_else Payload? Expr)?
|
||||
|
||||
CurlySuffixExpr <- TypeExpr InitList?
|
||||
|
||||
InitList
|
||||
<- LBRACE FieldInit (COMMA FieldInit)* COMMA? RBRACE
|
||||
/ LBRACE Expr (COMMA Expr)* COMMA? RBRACE
|
||||
|
Loading…
Reference in New Issue
Block a user