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

UnicodeData: Also support Unicode blocks #1692

Merged
merged 1 commit into from
Mar 1, 2017

Conversation

bhamiltoncx
Copy link
Contributor

@bhamiltoncx bhamiltoncx commented Feb 24, 2017

This is split off from the WIP PR #1688.

This extends the UnicodeData code-generated class to support Unicode blocks in addition to general categories, scripts, binary properties.

I added tests to cover the new functionality.

Since Unicode block names overlap with script names, I prefix the block name with In: \p{InBlockName}.

I also made it so - and _ are treated the same.

@parrt parrt added the unicode label Mar 1, 2017
@parrt parrt added this to the 4.7 milestone Mar 1, 2017
@parrt parrt merged commit 4d8e865 into antlr:master Mar 1, 2017
@bhamiltoncx bhamiltoncx deleted the unicode-blocks branch March 8, 2017 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants