Skip to content

Add support for commented json #425

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

Closed
wants to merge 1 commit into from
Closed

Add support for commented json #425

wants to merge 1 commit into from

Conversation

UnquietCode
Copy link

I'm not sure how useful this is for others, but some JSON parsing frameworks support non-standard C-style comments. It was pretty easy to mix in the comment types so I created a json-comments language (updating the json language was inappropriate since these are non-standard).

Please feel free to merge or close. Thanks for the great tool!

@sourrust
Copy link
Member

Like I said when on #406, there isn't a reason to have JSON highlight comments. It's probably better to just use the javascript highlighter and not have a separate language definition for such a small difference.

@sourrust sourrust closed this Feb 25, 2014
@UnquietCode
Copy link
Author

Ok. Good point about using the javascript highlighter.

@idleberg
Copy link
Contributor

idleberg commented May 21, 2017

@UnquietCode Have you considered forking languages/json.js? You could make the necessary changes for JSON5-compliance and commit it as languages/json5.js (or distribute it on you own)

@UnquietCode
Copy link
Author

UnquietCode commented May 23, 2017 via email

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.

4 participants