Microsoft/monaco-editor

TS regex missed by Monarch grammar

Open

#2,512 opened on 2021年6月2日

GitHub で見る
 (0 comments) (0 reactions) (0 assignees)JavaScript (1,283 forks)batch import
buggrammarshelp wantedtypescript

Repository metrics

Stars
 (14,836 stars)
PR merge metrics
 (平均マージ 6h 26m) (30d で 15 merged PRs)

説明

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

コントリビューターガイド