You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first 2 cases fail, with strange error message:
pyparsing.exceptions.ParseException: Found unwanted token, 'B', found ' '
IMO, NotAny should set skipWhitespace on the underlying expression, otherwise the whole idea doesn't work.
Maybe not setting it could be justified when ParserElement is used (changing skipWhitespace 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 set skipWhitespace when a string is passed?
The text was updated successfully, but these errors were encountered:
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: