C# syntax highlighting is completely broken? #6412
-
I'm sorry if this repo is completely unrelated, but I don't know where to start. It seems that C# syntax highlighting has been completely broken for at least a month at github and I'm struggling to understand why. Consider a very simple function: int Add(int a, int b) => a + b; Yes, it's wrapped with '''csharp, now let me do the same with '''cpp int Add(int a, int b) => a + b; so C# is so broken that I now use C++ for my C# snippets 🙁. This might be something related to top-level statements, let me try a class now: class P { int Add(int a, int b) => a + b; } still grey ( |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This is indeed the wrong place as it is a problem with the upstream tree-sitter grammar but I can confirm an update is coming in the next week or two which should fix the issue. If not, GitHub support is the best place to bring this up as Linguist is not responsible for the C# grammar. |
Beta Was this translation helpful? Give feedback.
This is indeed the wrong place as it is a problem with the upstream tree-sitter grammar but I can confirm an update is coming in the next week or two which should fix the issue. If not, GitHub support is the best place to bring this up as Linguist is not responsible for the C# grammar.