Skip to content

Wrong syntax highlighting when escaping quote inside property name of an object literal #468

@mjbvz

Description

@mjbvz

From @MX-Futhark on June 5, 2017 10:51

  • VSCode Version: 1.12.2 (19222cdc84ce72202478ba1cec5cb557b71163de)
  • OS Version: Windows 7 Enterprise Service Pack 1

Steps to Reproduce:

  1. Create a new Javascript file
  2. Write the following:
({ 'foo\'': 'bar' })

The color of 'foo\ is different from the expected color:

vs_code_wrong_syntax_highlighting

Notes:

  • This is not specific to Dark+
  • It also works when using double quotes:
({ "foo\"": "bar" })

Copied from original issue: microsoft/vscode#28033

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions