swiftlang / swift-experimental-string-processing

An early experimental general-purpose pattern matching engine for Swift.
Apache License 2.0
278 stars 47 forks source link

[6.0] Allow captures in lookahead and atomic groups #736

Closed natecook1000 closed 6 months ago

natecook1000 commented 6 months ago

Explanation: This resolves an issue where matching a pattern that includes a capture group inside a positive lookahead or an atomic group results in a runtime error. Scope: All the changes are internal implementation within the _StringProcessing module. Issue: rdar://126009544 Original PR: #723 Risk: Low. There's no API or ABI impact of this change. Testing: This change adds tests that verify that the previously failing patterns are working correctly, and continues to pass the existing compilation and pattern-matching tests. Reviewer: @stephentyrone


Cherry pick to swift/release/6.0 of #723.

natecook1000 commented 6 months ago

@swift-ci Please test