Closed mrcharles closed 1 week ago
@mrcharles This sounds like an issue with the C# textmate grammar which is in the https://github.com/dotnet/csharp-tmLanguage repo.
As a work around, you can set csharp.semanticHighlighting.enabled
to true
to enable semantic highlighting.
Closing as the C# extension now ships with semantic highlight support as well as an improved textmate grammar
Issue Type: Bug
You can paste the code example from https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/switch-expression into a C# file and see that the word "switch" does not highlight.
"switch" is a keyword and should highlight as such.
Extension version: 1.23.13 VS Code version: Code 1.58.2 (c3f126316369cd610563c75b1b1725e0679adfb3, 2021-07-14T22:10:15.214Z) OS version: Windows_NT x64 10.0.19042 Restricted Mode: No