Publishing nested comments on GitHub

Hello,

I first post this question here, even though it concerns SuperCollider syntax formatting on Github.

Nested comments does work in SuperCollider, but not with SuperCollider Github pages.
I did a small example on Github: https://github.com/Xon77/Live4Life/blob/Nov2021/4Live4Life_Project/Nested_Comments_Formatting.scd
Does anyone know how to make nested comments with /* */ work on Github ?
or how I could find help on that…

Many thanks,

Christophe

GitHub uses Pygments for syntax highlighting. You’ll have to file a bug with that project, or propose a pull request to fix it.

Thanks,

I’ve just filed a bug.
For now, I will publish my code on GitHub with this syntax highlighting issue.
Anyway, the syntax highlighting works with SC.

Christophe

FWIW I don’t think there’s anyone at the pygments that maintains individual languages. If there’s anything that will fix the SuperCollider bug, it’s someone on this forum… I have no idea who did the original support for it - it’s probably not too difficult to fix, I’m sure other languages get this correct.

I got an answer on the bug I posted :
https://github.com/pygments/pygments/issues/2033, which says that:
GitHub is not using Pygments (anymore).

I will post a new issue on : https://github.com/github/linguist

Thanks,

Christophe

This issue is most likely due to a bug in the grammar used by Linguist rather than a bug in Linguist itself. Linguist uses the Atom syntax grammar (see their grammar index), so you should submit your issue there (https://github.com/supercollider/language-supercollider) and if it gets fixed there, the upstream fix will automatically be included in the next version of Linguist.

Thanks,

And I can see that someone has already reported the issue in 2017:
https://github.com/supercollider/language-supercollider/issues/4