Microsoft/monaco-editor

TS regex missed by Monarch grammar

Open

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

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

仓库指标

Star
 (14,836 star)
PR 合并指标
 (平均合并 6小时 26分钟) (30 天内合并 15 个 PR)

描述

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

贡献者指南