microsoft / microsoft/TypeScript-TmLanguage
Regex on new line breaks js/ts highlighter
未关闭
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 471
- 派生
- 149
- PR 合并指标
- 30 天内没有已合并 PR
描述
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version:
1.85.2
c8a36a69377856369f139f39ee56dd3838130fbf
x64
- OS Version:
n/a
Putting a regular expression on a new line in JavaScript or TypeScript breaks the highlighter.
Steps to Reproduce:
- paste this:
1
/ f(/u/g)
function f(_: RegExp) {
return 1;
}
- make sure the language mode is set to TypeScript
Expected:
Same highlighting as this:
Actual:
Theme: @id:vscode.theme-defaults: Dark +
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
在 VS Code 中使用 TypeScript 语言模式,通过提供的 TypeScript 代码片段重现该问题,然后检查仓库中的 TypeScript TextMate 语法文件。将高亮显示与预期示例进行比较,并验证将正则表达式放在新行上不再会破坏后续代码的高亮显示。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- typescript
- 领域
- tooling
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100