Skip to content

(javascript) Incorrect highlight after '/' symbol  #2530

@gdmfilippov

Description

@gdmfilippov

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions