Skip to content

Comment in try-catch exception parameter not highlighting #127

Open
@rchande

Description

@rchande

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions