-
Notifications
You must be signed in to change notification settings - Fork 0
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
Failure in test_string_literals: Unexpected amount of warnings #64
Comments
Simpler repro (the eval is just confusing matters): Old parser:
New parser:
|
If we memoize the Should we do it? |
It seems that there is another mismatch here, that I had missed. Current Parser:
Pegen:
Not sure which is wrong. |
Neither points to the line with the offending |
Reopening this until we disable the line checking test. |
Turns out pegen does not point to the end of the string, but to the |
When parsing a string with an invalid escape, the old parser used to point to the beginning of the invalid string. This PR changes the new parser to match that behavior, since it's currently pointing to the end of the string (or to be more precise, to the beginning of the next token). Closes we-like-parsers#64.
Current Parser:
Pegen:
The text was updated successfully, but these errors were encountered: