@ell1e I still think a dedicated JSON filetype should (at least by default) not allow comments.
But we don't even need to make a hard decision here as the Scintilla JSON lexer has a property to toggle highlighting of comments: lexer.json.allow.comments.

So, one can add:

[lexer_properties]
lexer.json.allow.comments=1

to the filetype definition and so enable highlighting of comments if desired.
@d5l6 this could go as commented and documented option in the filetype definition (for reference see https://sourceforge.net/p/scintilla/code/ci/default/tree/lexers/LexJSON.cxx#l121).


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.