-
-
Notifications
You must be signed in to change notification settings - Fork 155
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
Labelling has no effect on one_of()
?
#694
Comments
Is this using the latest |
hey, nope this is on alpha.7. i've tried |
What's the error, out of interest? I think I know what's causing this, but resolving it in the general case is... a little finickey, I think. |
ha, i was trying to build with the sounds interesting, if you could explain it a little bit that would be cool, maybe someone can help |
So when a parser succeeds, it leaves the input pointing at the next token after whatever it parsed. But when a parser fails, the state it leaves the parser in is unspecified (as in: that's how chumsky behaves right now). The problem is that The reason this works with I can give more information tomorrow. |
hey! i was trying to apply some labels on a
.one_of(Range)
parser but it didn't work, so i decided to try a few other cases:as you can see the label does not show up in cases where
one_of()
is used. let me know if i'm doing something wrong!The text was updated successfully, but these errors were encountered: