-
Notifications
You must be signed in to change notification settings - Fork 191
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
Parsing fails on multiline string with comments and newlines #204
Comments
Thank you for the bug report! Your example appears to be equivalent to the following toml document:
Is this correct? This appears to be an issue of combining |
Yes I agree. That is the TOML document I'm talking about. Indeed it looks like certain combinations do not work well inside the multiline string. |
triple quote """ or ''' ending a multiline string are not checked correctly if line ends with comments or spacing or anything
This issues is due to '# ' or any chracter (e.g. space )just after """. The check for """ is done on the non stripped version of the line. |
triple quote """ or ''' ending a multiline string are not checked correctly if line ends with comments or spacing or anything
I can't put my finger on this exactly, but it seems that the parser gets confused by certain combinations of multiline strings with comments.
For example:
returns
{}
while it should return
{"a": "#\n"}
May be related to #152.
The text was updated successfully, but these errors were encountered: