Microsoft/monaco-editor

TS regex missed by Monarch grammar

Open

#2.512 aberto em 2 de jun. de 2021

Ver no GitHub
 (0 comments) (0 reactions) (0 assignees)JavaScript (1.283 forks)batch import
buggrammarshelp wantedtypescript

Métricas do repositório

Stars
 (14.836 stars)
Métricas de merge de PR
 (Mesclagem média 6h 26m) (15 fundiu PRs em 30d)

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

Guia do colaborador