You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I was trying to poke through the code to fix the issue myself and send a PR, but all the macro magic of old nom was really hurting my brain. Long story short steamy-vdf fails to parse
"key" ""
and returns a parse error. If "" actually contains text then it works fine.
I think this is a problem in vdf/src/parser.rs's enclosed parser where super::enclosed(b"\"\"") returns Error(Position(Alt, [34, 34])) when I think it should return Done(&b""[..], Token::Item("".into())).
Let me know if there's any way I can help, or if this crate isn't supported anymore!
The text was updated successfully, but these errors were encountered:
Just to let you know I made a separate parser and serde library for VDF since this parser didn't seem to be maintained. Specifically keyvalues-parser and keyvalues-serde
Hello! I was trying to poke through the code to fix the issue myself and send a PR, but all the macro magic of old
nom
was really hurting my brain. Long story shortsteamy-vdf
fails to parseand returns a parse error. If
""
actually contains text then it works fine.I think this is a problem in
vdf/src/parser.rs
'senclosed
parser wheresuper::enclosed(b"\"\"")
returnsError(Position(Alt, [34, 34]))
when I think it should returnDone(&b""[..], Token::Item("".into()))
.Let me know if there's any way I can help, or if this crate isn't supported anymore!
The text was updated successfully, but these errors were encountered: