-
Notifications
You must be signed in to change notification settings - Fork 20
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
Does not support astral ID_Continue characters in capture group names #90
Comments
To save everyone else the trouble of figuring out which symbol is being used — the above input string is |
I now understand that this changed between ES5 and ES6. If that's true, I see three approaches:
I prefer 3 over 2 over 1. |
I prefer 2 over 3 over 1. |
But note that this is unrelated to ES2015 — named capture groups are a more recent proposal, that might become part of ES2018. |
Right,
|
Does this need a resolution? Following the comment 1, I am not sure what needs to be done / is the correct way to do here. |
There are basically two issues:
|
Re: 1. |
The production for
So |
Right, but in practice engines (must) implement Annex B for Web compatibility. The
regjsparser should implement the same. |
Alright. So I suggest to switch |
Yes, this sounds reasonable. |
https://github.com/adrianheine/regjsparser/tree/astral contains my first try at fixing this. |
/(?<$𐒤>a)/u
should parse according to test262.The text was updated successfully, but these errors were encountered: