Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
frobinsonj opened this issue Jul 11, 2019 · 1 comment

Comments

@frobinsonj
Copy link

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

@frobinsonj frobinsonj changed the title Javascript syntax highlighting breaks when using "\" as key and "(" as value Javascript syntax highlighting breaks when using "\" as key and value begins with "(" Jul 11, 2019
@mjbvz mjbvz transferred this issue from microsoft/vscode Jul 20, 2019
@mjbvz
Copy link
Contributor

mjbvz commented Jul 20, 2019

Confirmed with the latest grammar from master

@mjbvz mjbvz removed their assignment Jul 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants