Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix if-condition with switch parsing. #1764

Merged
merged 2 commits into from
Jun 14, 2024
Merged

Conversation

rsmmr
Copy link
Member

@rsmmr rsmmr commented Jun 13, 2024

The parser generator was ignoring if conditions attached to switch
constructs. While we actually had a test for this already, turns out
we had recorded a broken baseline. Plus, we were testing only one
variant of switch (expression-based, not look-ahead-based). This
implements and tests both variants now.

Closes #1759.

rsmmr added 2 commits June 13, 2024 12:39
The parser generator was ignoring `if` conditions attached to `switch`
constructs. While we actually had a test for this already, turns out
we had recorded a broken baseline. Plus, we were testing only one
variant of `switch` (expression-based, not look-ahead-based). This
implements and tests both variants now.

Closes #1759.
@rsmmr rsmmr requested a review from bbannier June 14, 2024 07:41
Copy link
Member

@bbannier bbannier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, that's indeed a tiny fix, thanks!

@rsmmr rsmmr merged commit 5ff0cfe into main Jun 14, 2024
19 checks passed
@rsmmr rsmmr deleted the topic/robin/gh-1759-switch-if branch June 14, 2024 08:56
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Trailing if on unit switch is ignored
2 participants