backport: 14.0.1

This commit is contained in:
FalsePattern 2024-04-27 15:17:59 +02:00
parent 938ac8add7
commit 3a281ffb0a
Signed by: falsepattern
GPG key ID: E930CDEC50C50E23
2 changed files with 12 additions and 2 deletions

View file

@ -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

View file

@ -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)