-
-
Notifications
You must be signed in to change notification settings - Fork 275
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
NotAny skips whitespace #434
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Documentation:
Tests show that
NotAny
actually skips whitespace and matches parse expression not just in current position, but after white space too.Test cases:
The first 2 cases fail, with strange error message:
IMO,
NotAny
should setskipWhitespace
on the underlying expression, otherwise the whole idea doesn't work.Maybe not setting it could be justified when
ParserElement
is used (changingskipWhitespace
would require creating a copy of the element, and then it's better if the user does it by himself). But what's the reason not to setskipWhitespace
when a string is passed?The text was updated successfully, but these errors were encountered: