-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Razor TextMate grammar does not handle nullability well in @code blocks #4472
Comments
@JoeRobich does O#'s C# grammar support this in VSCode? |
No the C# textmate grammar is still quite a bit behind. We would recommend enabling Semantic Highlighting. |
@tn-5 Could you open an issue against https://github.com/dotnet/csharp-tmLanguage? |
Good. I also noticed this recently. |
I also have this issue :( |
I am also having this issue as well. |
A note since it seems to have been lost, the issue was filed against csharp-tmLanguage as dotnet/csharp-tmLanguage#191. |
As soon as a property is declared that is of a nullable type, i.e.
?
suffix, the syntax highlighting of the rest of the file seems to get confused.Reproduce
dotnet new blazorserver
WeatherForecast
as a class/typeAdd nullable field
string? test;
before theWeatherForecast
declarationWeatherForecast
is still correctAdd nullable property
string? test1 {get; set;}
before theWeatherForecast
declarationWeatherForecast
now reverts to generic textIt does not seem to make any difference if the setting on the project file is enabled or not.
The text was updated successfully, but these errors were encountered: