Skip to content

[JavaScript] RegExp with combination of named capturing group and v flag breaks syntax coloring #1022

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

Closed
anthonyvdotbe opened this issue Mar 20, 2024 · 1 comment

Comments

@anthonyvdotbe
Copy link

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

  • VS Code Version: 1.87.2 (user setup) 863d2581ecda6849923a2118d93a088b0745d9d6
  • OS Version: Windows_NT x64 10.0.22631

Steps to Reproduce:

  1. create a file with the following contents:
const match = /(?<n>issue)/u.exec("issue");
// comment
const num = 42;
  1. change the u flag to the v flag:
const match = /(?<n>issue)/v.exec("issue");
// comment
const num = 42;

Expected: syntax coloring works
Actual: syntax coloring breaks in step 2

@aeschli aeschli assigned mjbvz and unassigned aeschli Mar 20, 2024
@mjbvz mjbvz transferred this issue from microsoft/vscode Mar 20, 2024
@mjbvz mjbvz removed their assignment Mar 20, 2024
@anthonyvdotbe
Copy link
Author

Duplicate of #1006

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

3 participants