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
Add support for super-BMP unicode range; closes #586 #616
base: master
Are you sure you want to change the base?
Add support for super-BMP unicode range; closes #586 #616
Conversation
This pull request is automatically deployed with Now. Latest deployment for this branch: https://pegjs-next-web-git-fork-blake-regalia-add-super-bmp-unic-b82360.futagoza.now.sh |
Code Climate has analyzed commit d10662b and detected 0 issues on this pull request. View more on Code Climate. |
Hi, I like your idea of introducing |
I’ve tested this patch. Two remarks about syntax and about an issue.
The only idea I have to fix the second point is decomposing astral (=super-BMP) code points into two surrogates. E.g. |
The issue about regexes is quite complicated, see this blog post and the two associated libraries regenerate and regexpu. Using one of the libraries could solve the issue. |
I will happily write the tests to ensure that this is safe, probably using fast check, then merge this I need this very badly, and didn't know it had been waiting in the wings for almost a year @dmajda Can I get commit rights so that I can release |
Understood. |
I propose an alternative syntax using the ES6 syntax for astral code points like |
PR type
Prerequisites
Description
Closes #586 . Adds support for super-BMP unicode range via the commonly used capital
'U'
escape character for 8-digit unicode escape sequences.Example: