Skip to content

Conversation

hamishknight
Copy link
Contributor

5.7 cherry-pick of #488

This allows writing atomic non-capturing groups in regex syntax and implements Local components in the builder syntax.

Also fixes rdar://94738096

This will let us fix lookahead assertions that have leftover save
points in the subpattern on success, and also allow us to implement
atomic groups.
On success, the subpatterns in lookaheads like (?=.*e) had a save
point that persisted, causing the logic in the lookahead group to
be invalid.
In addition to the (?>...) syntax, this is what's underneath `Local`.
@hamishknight hamishknight added the r5.7 5.7 Release Cherry Picks label Jun 29, 2022
@hamishknight
Copy link
Contributor Author

@swift-ci please test

@hamishknight hamishknight merged commit 382bde5 into swiftlang:swift/release/5.7 Jun 30, 2022
@hamishknight hamishknight deleted the 488-5.7 branch June 30, 2022 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
r5.7 5.7 Release Cherry Picks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants