Skip to content

JS Highlighting: '/*' in string disrupts comment highlighting #3032

@Josh-Cena

Description

@Josh-Cena

Information:

Description
When a string contains /* (which is common in configurations with glob matching), only the directly next line comment directive gets properly highlighted.

If a block comment is inserted somewhere, however, the subsequent line comments are parsed correctly again.

Example

image

(I am using the vscode-dark theme provided by prism-react-renderer)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions