-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Invalid oniguruma nested lookarounds #24
Comments
Thanks for the report/details! This is currently low priority since the JS handling is more permissive, so all valid Oniguruma lookbehinds should be handled correctly. But I agree it would be good to error in the same cases that Oniguruma would. Note to self: Previously removed code in 696dcab might be adaptable for the new checks. |
I take this back, since using
Re: |
Oniguruma does not support every combination of nested lookarounds
(?=)
,(?!)
,(?<!)
and(?~)
are not valid inside a lookbehind(?<=)
(?=)
,(?!)
and()
capture groups are not valid inside a negative lookbehind(?<!)
interesting JS does allow them
should be invalid
The text was updated successfully, but these errors were encountered: