Skip to content
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

Allow trailing comma without trailing whitespace #144

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

chrysn
Copy link
Contributor

@chrysn chrysn commented Jun 1, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant