Repository navigation
Commit 0f8ce33
committed
Require a semicolon after package-scoped event triggers
The package-scoped event trigger production does not consume its trailing
semicolon. As a result, `if (cond) -> p::e; else ...` is rejected because
the semicolon is parsed as a separate null statement. Omitting the
required semicolon incorrectly makes the statement compile.
Add the semicolon to the package production, matching the ordinary event
trigger and the `event_trigger` grammar in IEEE 1800-2023 A.6.5.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>1 parent d95f240 commit 0f8ce33
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7719 | 7719 | | |
7720 | 7720 | | |
7721 | 7721 | | |
7722 | | - | |
| 7722 | + | |
7723 | 7723 | | |
7724 | 7724 | | |
7725 | 7725 | | |
| |||
0 commit comments