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