Microsoft/monaco-editor

TS regex missed by Monarch grammar

Open

#2,512 创建于 2021年6月2日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)JavaScript (14,836 star) (1,283 fork)batch import
buggrammarshelp wantedtypescript

描述

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

贡献者指南