rouge-ruby / rouge

A pure Ruby code highlighter that is compatible with Pygments
https://rouge.jneen.net/
Other
3.33k stars 735 forks source link

JSON5 support #1577

Open KrystianOcado opened 4 years ago

KrystianOcado commented 4 years ago

Please note: New lexers are contributed to Rouge from the community. Your request will help the community in developing a lexer but it does not mean that anyone will develop the lexer.

JSON5 JSON5 a.k.a. JSON for humans: https://json5.org/

This is basically JSON with couple improvements (e.g. comments).

Implementation in other libraries I can't find JSON5 in Pygments or Chroma or HighlightJS. I could find something like: https://github.com/gutenye/json5.vim and it is also supported by IntelliJ Idea.

hugopeixoto commented 4 years ago

There's already a PR, and needs reviewing: https://github.com/rouge-ruby/rouge/pull/1561