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

Ellie notifications at xxxxx
Sat May 16 17:32:51 UTC 2020


I would recommend to ship a `JSON with comments` filetype from the start because it does seem to be somewhat common to me (mostly due to MS's VS Code which popularized). Being able to extend it is always cool, but obviously the user experience is better if the right file mode is already available in the built-in list. With that given, it seems reasonable to then make the "regular" `JSON` type be strict about comments being not allowed and all that

Fwiw, "JSON with comments" usually means allowing trailing commas in objects and lists, comment type `// line comment`, comment type `/* block comment */`, and sometimes comment type `# alternate line comment`. I would recommend accepting these all as valid in a `JSON with comments` file type if you choose to provide one

-- 
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-629680746
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20200516/d081eedd/attachment.htm>


More information about the Github-comments mailing list