csharp-tmLanguage icon indicating copy to clipboard operation
csharp-tmLanguage copied to clipboard

Comment in try-catch exception parameter not highlighting

Open rchande opened this issue 7 years ago • 0 comments

Details

VS Code version: 1.24.0 C# Extension version: 1.15.2

Steps to reproduce

try { /* Stuff */ }
catch ( ExceptionType /* This comment isn't highlighted as a comment */ ) { /* stuff */ }

This is part of example code from the ASP.Net Core tutorials https://docs.microsoft.com/en-us/aspnet/core/data/ef-mvc/crud?view=aspnetcore-2.1

Expected behavior

The comment inside the parentheses should be highlighted as a comment.

Actual behavior

The comment inside the parentheses is highlighted as a variable name, as if it were an ExceptionType.

rchande avatar Jul 05 '18 17:07 rchande