zeek / spicy

C++ parser generator for dissecting protocols & files.
https://docs.zeek.org/projects/spicy
Other
243 stars 37 forks source link

Fix `if`-condition with `switch` parsing. #1764

Closed rsmmr closed 2 months ago

rsmmr commented 2 months ago

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.