-
Notifications
You must be signed in to change notification settings - Fork 13
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
Can't parse .toml file without newline at the end #20
Comments
Oh strange, I thought I had fixed this. I won't be home until Friday, but if no one have done it by then I'll do it. |
i just had this same issue with 0.7.0.
added new line and it works. I'm using a file instead of a string, if that matters.
|
Hmm, seems like a specific issue with comments perhaps, or a regression. I'm reopening this, but if it turns out to be something else it might be better to have it as a separate issue. |
thanks. btw, the line it referenced was the last line of the file. |
i just deleted all comments and the newline at the end of the toml and it compiled and ran. not seeing any special requirements on comments in the toml docs, so i'm not sure what the problem is. |
The problem is likely just that the part of the parser which does comments consumes the line ending while it shouldn't. Probably a fairly easy fix. |
I don't really know if this is a bug or it's actually in TOML specification, but here's the repro code:
The text was updated successfully, but these errors were encountered: