sympy / sympy_benchmarks

Some benchmarks of SymPy
14 stars 32 forks source link

Use `jsonc` syntax highlighting for github #96

Closed sylee957 closed 7 months ago

sylee957 commented 1 year ago

Technically, I figured out the reason why we are getting 'red' for comments,

It is because the grammar of json https://www.json.org/json-en.html does not allow any comments, however, this is not an issue with most of the JSON parsers out there.

https://github.com/sympy/sympy_benchmarks/blob/eec71049a6020cc25a486535c44da2982ca92eb5/asv.conf.json#L16-L32

It is possible to fix this in .gitattributes

*.json linguist-language=jsonc