Skip to content

Javascript regex with string delimiter (" or ' or `) breaks syntax highlighting #3131

@mzoliker

Description

@mzoliker

Description of the problem or steps to reproduce

Open a .js file and any line below will break syntax highlighting:
let a = /"/;
let a = /'/;
let a = /`/;
let a = /["'ˋ]/;

Specifications

Version: 2.0.13
Commit hash: 68d88b5
Compiled on October 21, 2023
OS: Ubuntu

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