Open CosmicHorrorDev opened 3 years ago
PR #3 may possibly fix that problem.
Thanks for submitting a PR!
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!