Open ElectricRCAircraftGuy opened 1 year ago
If I am able to add this feature as a PR, would you accept it?
So json5 supposedly supports comments but from what I've found, there are not many reliable libraries for go that allow for comments (especially block).
Good call on the jsonc, I found one for Go actually got it to work with all kinds of comments. Not exactly sure what this would mean for performance, especially over ssh. But I wouldn't mind implementing it if it would get accepted.
*Edit: I understand that some json5 libraries may support comments, and the issue is not parsing but that they are not overwritten each runtime. But from what I've seen, comments between lines, block comments, etc were problematic for these other json5 libraries and would often throw errors. This jsonc seems to work much better from what I can tell
Description of the problem or steps to reproduce
Please allow comments in the
micro
settings.json file at~/.config/micro/settings.json
.JSON doesn't allow for comments. JSON-cpp does. Many settings files using JSON support it, allowing C++-style
//
comments in JSON files, like this:Note: to get github to allow the comments above, I set the syntax language to
jsonc
, like this (see here, and see my answer here):