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

Color highlight of JS gets confused after regex #90881

Closed
neiljvr1 opened this issue Feb 18, 2020 · 1 comment
Closed

Color highlight of JS gets confused after regex #90881

neiljvr1 opened this issue Feb 18, 2020 · 1 comment
Assignees
Labels
grammar Syntax highlighting grammar javascript JavaScript support issues typescript Typescript support issues upstream-issue-linked This is an upstream issue that has been reported upstream

Comments

@neiljvr1
Copy link

neiljvr1 commented Feb 18, 2020

Issue Type: Bug

create .js file with this content:

var myWindowsDriveLabel = "D:\\";
console.log("This is colour coded");
if (!/^[d-zD-Z]\:\\?$/.test(myWindowsDriveLabel)) {
  console.log("This is NOT colour coded anymore");
} 

VS Code version: Code 1.42.1 (c47d83b, 2020-02-11T14:45:59.656Z)
OS version: Windows_NT x64 10.0.17763

@mjbvz mjbvz assigned mjbvz and unassigned alexr00 Feb 19, 2020
@mjbvz
Copy link
Collaborator

mjbvz commented Feb 19, 2020

Duplicate of microsoft/TypeScript-TmLanguage#806

@mjbvz mjbvz closed this as completed Feb 19, 2020
@mjbvz mjbvz added grammar Syntax highlighting grammar javascript JavaScript support issues typescript Typescript support issues upstream-issue-linked This is an upstream issue that has been reported upstream labels Feb 19, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Apr 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
grammar Syntax highlighting grammar javascript JavaScript support issues typescript Typescript support issues upstream-issue-linked This is an upstream issue that has been reported upstream
Projects
None yet
Development

No branches or pull requests

3 participants