Skip to content

Syntax highlighting breaks when a comment containing a C# keyword is on the same line as a property definition #2021

@sbeca

Description

@sbeca

Environment data

dotnet --info output:

.NET Command Line Tools (2.1.4)

Product Information:
 Version:            2.1.4
 Commit SHA-1 hash:  5e8add2190

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  10.13
 OS Platform: Darwin
 RID:         osx.10.12-x64
 Base Path:   /usr/local/share/dotnet/sdk/2.1.4/

Microsoft .NET Core Shared Framework Host

  Version  : 2.0.5
  Build    : 17373eb129b3b05aa18ece963f8795d65ef8ea54

VS Code version: 1.20.0
C# Extension version: 1.13.1

Steps to reproduce

Write a comment containing a C# keyword (e.g. class, struct, enum) on the same line as a single line property definition.

Expected behavior

bugreport2

Actual behavior

bugreport1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions