Skip to content

Javascript syntax highlighting breaks when using "\" as key and value begins with "(" #760

@frobinsonj

Description

@frobinsonj

Steps to Reproduce:

  1. Open new JS file
  2. Paste the following code:
var a = {'\\': '('};

function function1() {
  console.log("hello".toUpperCase());
}

function function2() {
  console.log("hello".toUpperCase());
}

console.log("hello".toUpperCase());

Screenshot:
image

VS Code version: Code 1.36.1 (2213894ea0415ee8c85c5eea0d0ff81ecc191529, 2019-07-08T22:59:35.033Z)
OS version: Windows_NT x64 10.0.17763

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