[Github-comments] [geany/geany] Use Scintilla's JSON lexer for JSON instead of the JavaScript/C++ lexer (#2454)

Enrico Tröger notifications at xxxxx
Sat May 16 10:25:29 UTC 2020


@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 or view it on GitHub:
https://github.com/geany/geany/pull/2454#issuecomment-629623800
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20200516/1c143e91/attachment.htm>


More information about the Github-comments mailing list