-
Notifications
You must be signed in to change notification settings - Fork 805
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
fix: parse "infinity" literal fully in float
#1673
Conversation
`float` first parsed the "inf" literal and then "infinity", therefore even though the latter was parsed correctly, the suffix "inity" was returned as remaining input, which is not correct.
Not the maintainer but I'm assuming the intent here is to parse the keywords For a language when an invalid keyword is used often enough, it can make sense to special case the error situation into the grammar (match on |
I forgot to mention that nom 6 parsed My motivation is actually this upgrade: garvys-org/rustfst#240 |
Huh, didn't realize that |
This was identified in nom in rust-bakery/nom#1673
This was identified in nom in rust-bakery/nom#1673
This was identified in nom in rust-bakery/nom#1673
right, the order was wrong here, nice catch |
Pull Request Test Coverage Report for Build 6597520943
💛 - Coveralls |
thank you! |
float
first parsed the "inf" literal and then "infinity", therefore even though the latter was parsed correctly, the suffix "inity" was returned as remaining input, which is not correct.