falkreon / Jankson

JSON5 / HJSON parser and preprocessor which preserves ordering and comments
MIT License
51 stars 9 forks source link

Option to use multiple `//` instead of `/* */` for multi-line comments (when saving) #62

Closed LoganDark closed 1 year ago

LoganDark commented 2 years ago

Would probably have to be parsed as a single comment when loading as well

falkreon commented 2 years ago

I would like to fold this improvement into the document system, which has more well-defined comment behavior.

falkreon commented 1 year ago

As of 2.0.0, whatever form the comments were loaded in as, will be roundtripped correctly back to the document on save.

The behavior of @Comment annotations coming from POJOs will need to be governed by flags on the writer.