Skip to content

Conversation

hamishknight
Copy link
Contributor

5.7 cherry-pick of #517

Tighten up validation of character class range operands such that we reject quotes and custom character classes. This includes rejecting syntax that would be a subtraction in .NET. We throw a custom error that suggests using -- instead.

We can do the semantic members check up-front.
Tighten up validation of character class range
operands such that we reject quotes and custom
character classes. This includes rejecting syntax
that would be a subtraction in .NET. We throw a
custom error that suggests using `--` instead.
@hamishknight hamishknight added the r5.7 5.7 Release Cherry Picks label Jun 28, 2022
@hamishknight
Copy link
Contributor Author

@swift-ci please test

@hamishknight hamishknight merged commit 6b2cb9d into swiftlang:swift/release/5.7 Jun 28, 2022
@hamishknight hamishknight deleted the closed-range-5.7 branch June 28, 2022 22:03
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.

2 participants