What happens
Open a JSONC file (JSON with // comments, like the cmux settings template) and the commented-out lines keep their full JSON syntax highlighting — keys stay red, strings green, booleans amber. Only the // markers hint that the block is inert, so at a glance the file reads as if all those settings are active.

What should happen
Everything after // on a comment line renders in the muted comment colour, the way any other language's comments do.
Likely cause
.json files load the plain JSON grammar (src/language.ts), which has no comment support, so the parser treats // lines as ordinary (broken) JSON tokens and highlights them. Probably wants the JSONC variant of the CodeMirror JSON language for .json/.jsonc, or at least for .jsonc plus known comment-friendly files.
Repro
- Open any
.json file that uses // comments (cmux's generated cmux.json template is a ready-made example).
- Look at the commented block - full token colours instead of comment styling.
Seen on v0.7 (dark theme, but theme-independent).
What happens
Open a JSONC file (JSON with
//comments, like the cmux settings template) and the commented-out lines keep their full JSON syntax highlighting — keys stay red, strings green, booleans amber. Only the//markers hint that the block is inert, so at a glance the file reads as if all those settings are active.What should happen
Everything after
//on a comment line renders in the muted comment colour, the way any other language's comments do.Likely cause
.jsonfiles load the plain JSON grammar (src/language.ts), which has no comment support, so the parser treats//lines as ordinary (broken) JSON tokens and highlights them. Probably wants the JSONC variant of the CodeMirror JSON language for.json/.jsonc, or at least for.jsoncplus known comment-friendly files.Repro
.jsonfile that uses//comments (cmux's generatedcmux.jsontemplate is a ready-made example).Seen on v0.7 (dark theme, but theme-independent).