-
Notifications
You must be signed in to change notification settings - Fork 46
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
Issues while parsing single quotes ''''
#125
Comments
Your example is behaving as I would expect? Recall that
Can you say more about the fields you have, and what's parsing incorrectly? FWIW, I just used this tool to try
which failed. According to the spec, I wrote the following to test round-tripping a few different things.
|
I encountered issues exactly while parsing I was not sure about the YAML specs, and the source is not entirely reliable so i wasn't sure who was at fault here. Regarding the example I wrote, I just now see that it indeed behaves as expected, I misparsed the result to be |
OK, so it seems like we're not correctly escaping a single quoted string if it occurs that the beginning, but otherwise, we are:
Is it correct to say that there's no problem with writing single quotes that you've identified? |
Yes, I edited the original issue. It was me not understanding anyhting. |
'
'
'
''''
Alright, one more example for completeness:
Unfortunately, while I'm technically a maintainer of this package for historical reasons, I've never actually gotten down and dirty with the parser, so might have to wait on a fix. If it's any help, the error appears to come from here. |
I can also provide the whole stacktrace, maybe it gives a little bit more insight. (It is quite hefty tho).
I'll try to give a look at it as well. |
I believe I have identified the issue to be in this while block: Lines 1232 to 1235 in fa25484
in particular the line We reach this line after encountering a quote character in the I modified the line to
where the reasoning is "If the next character is not a quote, procede. But, if the next character is a quote, procede if also the next after that is a quote." We basically allow the program to recognise Lines 1284 to 1286 in fa25484
This is the testing I've done so far:
And
P.S.: This package is a layered maze... |
* Fix single quotes parsing (#125) plus test cases. * added test_throws cases * Fixed bad test throws syntax, forgot the error type to be expected
Closed by #126 |
I encountered an issue where the parser would crash when trying to parse
''''
andin a file I was working on.'''
It seems that single quotes are not supported?
Thanks.
The text was updated successfully, but these errors were encountered: