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

Regular expression breaks syntax highlighting #92904

Closed
KostyaTretyak opened this issue Mar 18, 2020 · 2 comments
Closed

Regular expression breaks syntax highlighting #92904

KostyaTretyak opened this issue Mar 18, 2020 · 2 comments
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@KostyaTretyak
Copy link

Version: 1.43.0
Commit: 78a4c91400152c0f27ba4d363eb56d2835f9903a
Date: 2020-03-09T19:44:52.965Z
Electron: 7.1.11
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Linux x64 5.3.0-40-generic

If we place the cursor to the right of the last parenthesis in the following code, then we will see that the syntax highlight is not working properly.

if (!/(\/)/.test('text')) {
  const one = '';
}

Rusult highlighting:

image

Also, as you can see, the syntax for the keyword const is incorrectly highlighted.

Does this issue occur when all extensions are disabled?: Yes

@IllusionMH
Copy link
Contributor

/duplicate of microsoft/TypeScript-TmLanguage#806

@vscodebot vscodebot bot added the *duplicate Issue identified as a duplicate of another issue(s) label Mar 18, 2020
@vscodebot
Copy link

vscodebot bot commented Mar 18, 2020

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines.

Happy Coding!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

2 participants