Skip to content

[6.4] Fix forward progress check for lookahead#868

Merged
natecook1000 merged 2 commits into
mainfrom
6.4-fix-lookahead-forward-progress
Jul 22, 2026
Merged

[6.4] Fix forward progress check for lookahead#868
natecook1000 merged 2 commits into
mainfrom
6.4-fix-lookahead-forward-progress

Conversation

@natecook1000

Copy link
Copy Markdown
Member

Cherry-pick of #866 and #867 to the 6.4 branch.

ekassos and others added 2 commits July 21, 2026 14:37
When a quantified concatenation begins with a lookaround group, the forward
progress checker fails to skip over the assertion's child subtree, leaving the
analysis cursor misaligned and leading to false positives.

This change skips the lookaround's child subtree, matching the treatment added
for nullable quantifications in #851.
@natecook1000

Copy link
Copy Markdown
Member Author

@swift-ci Please test Linux platform

@natecook1000
natecook1000 merged commit 00b1642 into main Jul 22, 2026
24 checks passed
@natecook1000
natecook1000 deleted the 6.4-fix-lookahead-forward-progress branch July 22, 2026 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants