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

Unmarshal comments using hjson.Node #54

Merged
merged 49 commits into from
Dec 11, 2022
Merged

Unmarshal comments using hjson.Node #54

merged 49 commits into from
Dec 11, 2022

Conversation

trobro
Copy link
Member

@trobro trobro commented Dec 11, 2022

By unmarshalling to hjson.Node, comments can be kept when loading an Hjson document, making changes, and then saving the document with new data.

Adds argument -preserveKeyOrder to the tool hjson-cli.

Adds DecoderOptions fields DisallowDuplicateKeys and WhitespaceAsComments.

@trobro
Copy link
Member Author

trobro commented Dec 11, 2022

This is a solution for #50 and #51.

@trobro trobro merged commit 77d0dc9 into master Dec 11, 2022
@trobro trobro deleted the hjson_node branch December 11, 2022 10:09
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