There were cases when a trailing comma (that is mostly allowed by this implementation, also by the upcoming spec, for but not tested) was not allowed:
$ echo '[1,2,3,]' | cargo run -- --from diag --to diag
Error: Failed all parsers
This patch fixes this by allowing the white space after the comma to be absent. I'm not sure that covers all the cases that were missing, but at least it covers a file I was using.
There were cases when a trailing comma (that is mostly allowed by this implementation, also by the upcoming spec, for but not tested) was not allowed:
This patch fixes this by allowing the white space after the comma to be absent. I'm not sure that covers all the cases that were missing, but at least it covers a file I was using.