-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Closed
Labels
Milestone
Description
Describe the issue
In some cases, the highlight is not correct after the '/' symbol.
Bellow is 2 examples.
Which language seems to have the issue?*
javascript
Are you using highlight
or highlightAuto
?
highlight
Sample Code to Reproduce
Example 1:
const x = `${duration / 1000}`;
func();
Example 2:
a(b, /.*c.*/);
func();
Expected behavior
In the example 1, the text after the '/' symbol doesn't change highlight color (including the symbol itself)
In the example 2 highlight after regexp must be correct
Additional context
It seems, problem appears in 9.18.1. I can't reproduce the problem with 9.18.2