Changed paths:
M spicy/toolchain/src/compiler/codegen/parsers/literals.cc
A tests/Baseline/spicy.types.unit.switch-lahead-regexp-captures/output
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.