Branch: refs/heads/topic/bbannier/issue/2438
Home:
https://github.com/zeek/spicy
Commit: e726e96adff8d130ce5e263c3d8c000e21f83866
https://github.com/zeek/spicy/commit/e726e96adff8d130ce5e263c3d8c000e21f83866
Author: Benjamin Bannier <
benjamin...@corelight.com>
Date: 2026-07-23 (Thu, 23 Jul 2026)
Changed paths:
M spicy/toolchain/src/compiler/codegen/parsers/literals.cc
A tests/Baseline/spicy.types.unit.switch-lahead-regexp-captures/output
M tests/Baseline/spicy.types.unit.synchronize-on-gap/gap_between_matches.log
A tests/spicy/types/unit/switch-lahead-regexp-captures.spicy
Log Message:
-----------
Fix parsing of regexps with capture groups in lookahead
The lookahead fast path consumed the look-ahead token and skipped the
regex loop, so capture groups were never populated. For regexp fields
that have captures, we now skip the fast path and let the regex loop run
instead so captures are filled normally.
Fixes #2438.
To unsubscribe from these emails, change your notification settings at
https://github.com/zeek/spicy/settings/notifications