Skip to content

JS & TS tokenizers don't support regexes with the "v" flag #1021

@nnmrts

Description

@nnmrts

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

  • VS Code Version: 1.87.0-insider
  • OS Version: Darwin arm64 23.4.0

Steps to Reproduce:

  1. Write const regex = /test/v; in any .(j|t)sx? file
  2. See that syntax highlighting breaks

Bildschirmfoto 2024-03-01 um 02 12 50

Bildschirmaufnahme.2024-03-01.um.02.14.22.mov

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions