dotnet / vscode-csharp

Official C# support for Visual Studio Code
MIT License
2.86k stars 670 forks source link

Bad syntax highlighting for ternary operator in Razor #5002

Open adamijak opened 2 years ago

adamijak commented 2 years ago

Expected Behavior

Correct syntax highlighting.

Actual Behavior

Screenshot from 2022-01-12 11-21-23

Environment information

VSCode version: 1.63.2 C# Extension: 1.24.0

Mono Information OmniSharp using built-in mono
Dotnet Information .NET SDK (reflecting any global.json): Version: 6.0.100 Commit: 9e8b04bbff Runtime Environment: OS Name: fedora OS Version: 35 OS Platform: Linux RID: fedora.35-x64 Base Path: /usr/lib64/dotnet/sdk/6.0.100/ Host (useful for support): Version: 6.0.0 Commit: 4822e3c3aa .NET SDKs installed: 3.1.118 [/usr/lib64/dotnet/sdk] 5.0.206 [/usr/lib64/dotnet/sdk] 6.0.100 [/usr/lib64/dotnet/sdk] .NET runtimes installed: Microsoft.AspNetCore.App 3.1.18 [/usr/lib64/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 5.0.9 [/usr/lib64/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.0 [/usr/lib64/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 3.1.18 [/usr/lib64/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 5.0.9 [/usr/lib64/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.0 [/usr/lib64/dotnet/shared/Microsoft.NETCore.App] To install additional .NET runtimes or SDKs: https://aka.ms/dotnet-download
Visual Studio Code Extensions |Extension|Author|Version| |---|---|---| |armview|bencoleman|0.4.5| |azure-account|ms-vscode|0.9.11| |azure-pipelines|ms-azure-devops|1.195.0| |azurecli|ms-vscode|0.5.0| |azurerm-vscode-tools|msazurermtools|0.15.5| |csharp|ms-dotnettools|1.24.0| |html-snippets|abusaidm|0.2.1| |vscode-azureappservice|ms-azuretools|0.23.0| |vscode-azurefunctions|ms-azuretools|1.6.0| |vscode-azureresourcegroups|ms-azuretools|0.4.0| |vscode-azurestorage|ms-azuretools|0.12.1| |vscode-azurevirtualmachines|ms-azuretools|0.4.1| |vscode-bicep|ms-azuretools|0.4.1124| |vscode-cosmosdb|ms-azuretools|0.18.1| |vscode-docker|ms-azuretools|1.18.0| |vscode-dotnet-runtime|ms-dotnettools|1.5.0| |vscode-html-css|ecmel|1.10.2| |vscode-node-azure-pack|ms-vscode|0.2.1| |vscodeintellicode|VisualStudioExptTeam|1.2.15|;
JoeRobich commented 2 years ago

Razor tooling issues are located at https://github.com/dotnet/razor-tooling/issues.