-
Notifications
You must be signed in to change notification settings - Fork 675
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
Syntax highlighting lost after certain comments #1659
Comments
This issue was moved to dotnet/csharp-tmLanguage#80 |
Moved over to the csharp-tmLanguage repo where the C# TextMate grammar lives. Note that syntax highlighting in VS Code isn't syntactic at all. Instead, it's handled via regular expressions and is very easy to "trick". |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment data
dotnet --info
output:VS Code version:
1.14.2
C# Extension version:
1.11.0
Steps to reproduce
Create below C# snippet
Expected behavior
The method
F2()
should still have correct syntax highlighting.Actual behavior
The method
F2()
doesn't have correct syntax highlighting.I notice:
if I remove the Line 9, the the syntax highlighting is back:
or remove the namespance, the the syntax highlighting is also back:
The text was updated successfully, but these errors were encountered: