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

Improve parsing of empty nulls and lists of objects #18

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

Conversation

iteratee
Copy link

@iteratee iteratee commented May 7, 2024

Use lookahead to improve parsing of empty keys that should be parsed as null and lists consisting of items.

All current tests pass, and the null test has been expanded to include cases that would fail without this code.

iteratee added 2 commits May 6, 2024 21:03
Use bounded lookahead to improve parsing of lists of objects and empty
keys that should parse as null.

Previously an empty key would parse as an object that contained keys
that should have been siblings. Includes an expanded test of null parsing
and a hie.yaml file that occurred in the wild and did not parse correctly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant