dotnet / dotnet/vscode-csharp

Bad syntax highlighting for ternary operator in Razor

Open
#5,002 1 comment 1 reaction 0 assignees View on GitHub
Editor-Syntax Highlighting OmniSharp Razor
Dominant language
TypeScript
Stars
3.1k
Forks
737
Avg merge
18h 40m
Merged PRs (30d)
31

Description

## Expected Behavior ##
Correct syntax highlighting.

## Actual Behavior ##
![Screenshot from 2022-01-12 11-21-23](https://user-images.githubusercontent.com/24510461/149122211-9e87e5bc-0994-4b09-9509-6ccf00fd6514.png)

## 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|;

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.