diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-29 00:36:25 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:15 -0300 |
| commit | fad6bf0cc7cc2cb579d9ad03147a7014906f6b92 (patch) | |
| tree | 0c7dcd37de52bf992375ca290ff794af8be9798c /src/Terminal.zig | |
| parent | 4881c5d13c6a705a8c8bdb0181c33f9a500b5a74 (diff) | |
| download | pardes-fad6bf0cc7cc2cb579d9ad03147a7014906f6b92.tar.gz pardes-fad6bf0cc7cc2cb579d9ad03147a7014906f6b92.zip | |
A repeat inside a regexp group gives back to what follows the group
On aab, /a+ab/ matched but /(a+)ab/ and /(a*)ab/ missed, and so did
(.+)_area and ([a-z_]+)_area, in addr, Edit and look alike. mvzr's hasAlt
counts a group's own ) as an alternative, so every group with pattern after
it takes matchGroup's alternatives branch, which never tries a repeat's
shorter matches. No newer mvzr fixes it (trunk is the pinned commit), so
the build patches the fetched source as it does the step budget,
anchor-checked: when the rest fails after a group, the group's shorter
matches are tried, longest first. docs/mvzr-group-backtrack.md is a report
for upstream.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/Terminal.zig')
0 files changed, 0 insertions, 0 deletions
