Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.7] Additional character property parsing #446

Merged

Conversation

hamishknight
Copy link
Contributor

5.7 cherry-pick of #440

Formalize the parsing of Unicode block properties (previously they were the remaining Oniguruma special properties), including allowing the shorthand spelling e.g \p{inBasicLatin}, which is supported by Perl and Oniguruma (though Perl discourages it).

Additionally, start parsing the Java character properties.

Previously we only supported a subset of the
Oniguruma spellings for these. Introduce them as
an actual Unicode property with the key `blk` or
`block`.

Additionally, allow a non-Unicode shorthand syntax
that uses the prefix `in`. This is supported by
Oniguruma and Perl (though Perl discourages its
usage). We may want to warn/error on it and suggest
users switch to the more explicit form.
These correspond to various `is`-prefixed
accessors on `java.lang.Character`. For now, parse
them, but mark them unsupported.
@hamishknight hamishknight added the r5.7 5.7 Release Cherry Picks label May 27, 2022
@hamishknight
Copy link
Contributor Author

@swift-ci please test

@hamishknight hamishknight merged commit dd81d61 into swiftlang:swift/release/5.7 Jun 1, 2022
@hamishknight hamishknight deleted the chunk-loader-5.7 branch June 1, 2022 17:52
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