Microsoft/monaco-editor

TS regex missed by Monarch grammar

Open

#2 512 ouverte le 2 juin 2021

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)JavaScript (1 283 forks)batch import
buggrammarshelp wantedtypescript

Métriques du dépôt

Stars
 (14 836 stars)
Métriques de merge PR
 (Merge moyen 6h 26m) (15 PRs mergées en 30 j)

Description

Extracted from https://github.com/microsoft/TypeScript-Website/issues/1870

const x = true ? /^([^"]*)"/ : /^([^']*)'/

/^([^"]*)"/ is not identified as a regex by the TS Monarch grammar, which breaks bracket matching:

image

Guide contributeur