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

Add support for hash style comments #12

Merged
merged 3 commits into from
Dec 30, 2021

Conversation

fivitti
Copy link
Contributor

@fivitti fivitti commented Dec 30, 2021

C-style comments (// and /* */ are the most popular way to add the annotations to JSON files. Another popular style is shell comments (single-line started with hash #). This style is used in shell scripting languages (bash, zsh, etc.), Python and, Perl.

I noticed that the users use both comment styles, but none Go library supports all of them simultaneously.

This MR adds the possibility to handle the shell comments in your excellent library.

@muhammadmuzzammil1998
Copy link
Owner

Nice work! Thank you for your contribution. I don't know why I skipped # for comment. Thanks again for working on it.

@muhammadmuzzammil1998 muhammadmuzzammil1998 added the enhancement New feature or request label Dec 30, 2021
@muhammadmuzzammil1998 muhammadmuzzammil1998 merged commit a1565b7 into muhammadmuzzammil1998:master Dec 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants