backport: 14.0.1
This commit is contained in:
parent
bb6dd0d83a
commit
3375f78d4d
2 changed files with 12 additions and 2 deletions
|
@ -18,6 +18,13 @@ Changelog structure reference:
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
## [14.0.1]
|
||||
|
||||
### Fixed
|
||||
|
||||
- Zig
|
||||
- If statements without a block always showed an error
|
||||
|
||||
## [14.0.0]
|
||||
|
||||
### Added
|
||||
|
|
|
@ -205,8 +205,11 @@ ComptimeStatement
|
|||
| VarDeclExprStatement
|
||||
|
||||
IfStatement
|
||||
::= IfPrefix BlockExpr ( KEYWORD_ELSE Payload? Statement )?
|
||||
| IfPrefix AssignExpr ( SEMICOLON | KEYWORD_ELSE Payload? Statement ) {pin(".*")=1}
|
||||
::= IfPrefix ZB_IfStatement_Body {pin(".*")=1}
|
||||
|
||||
private ZB_IfStatement_Body
|
||||
::= BlockExpr ( KEYWORD_ELSE Payload? Statement )?
|
||||
| AssignExpr ( SEMICOLON | KEYWORD_ELSE Payload? Statement )
|
||||
|
||||
LabeledStatement ::= BlockLabel? (Block | LoopStatement)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue