Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Regular Expression Syntax Highlighting only recognising control characters if uppercase

未关闭
#1,063 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
38/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
typescript, vscode
领域
devtools, tooling

调研方向

首先在仓库中定位正则表达式语法的 grammar 及其高亮测试,然后复现所报告的 \cJ 与 \cj 之间的差异。完成标准是两种等价的控制字符转义形式都获得相同的高亮;使用相关的 grammar 测试或 VS Code 语法高亮验证结果。

由索引模型根据 Issue 内容生成。

描述

Type: Bug

As per https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Regular_expressions/Character_escape#c:

\cJ and \cj are equivalent

The syntax highlighter in VSCode only puts the uppercase form in blue, seemingly recognising \c as a separate escape and j as a normal character.

It would be good to show both forms in blue.

VS Code version: Code 1.106.3 (bf9252a2fb45be6893dd8870c0bf37e2e1766d61, 2025-11-25T22:28:18.024Z)
OS version: Darwin arm64 24.6.0
Modes:

System Info
Item Value
CPUs Apple M4 (10 x 2400)
GPU Status 2d_canvas: enabled
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: enabled_on
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) 2, 3, 3
Memory (System) 24.00GB (0.13GB free)
Process Argv --crash-reporter-id 25a900f1-fd90-425a-8691-a245dd6d0743
Screen Reader no
VM 0%
Extensions (21)
Extension Author (truncated) Version
markdown-mermaid bie 1.29.0
vscode-eslint dba 3.0.16
docker doc 0.18.0
githistory don 0.6.20
gitlens eam 17.7.1
prettier-vscode esb 11.0.2
copilot-chat Git 0.33.4
vscode-github-actions git 0.28.1
vscode-containers ms- 2.3.0
vscode-docker ms- 2.0.0
playwright ms- 1.1.17
debugpy ms- 2025.16.0
python ms- 2025.18.0
vscode-pylance ms- 2025.10.4
vscode-python-envs ms- 1.12.0
remote-explorer ms- 0.5.0
remote-server ms- 1.5.3
vscode-jest Ort 6.4.4
code-spell-checker str 4.3.2
svelte-vscode sve 109.12.0
explorer vit 1.36.0
A/B Experiments
vsliv368cf:30146710
pythonvspyt551:31249599
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31334701
aj953862:31281341
nes-set-on:31351930
6abeh943:31336334
cloudbuttont:31379625
todos-1:31405332
qwen_all_req:31402696
42190218_ostrepl:31403339
trigger-command-fix:31379601
auto_model_enabled:31385282
use-responses-api:31390855
je187915:31401257
ec5jj548:31422691
copilot-nes-oct-t:31418199
terminalsuggestenabled:31426255
cmp-ext-treat:31426748
cp_cls_c_966_ss:31426491
defaultvisibility:31426295
expandedtokens:31427242
copilot6169-t:31426761
c0683394:31419495
3fia6346:31426581
478ah919:31426797
2bd77578_control:31426889
fa76a614:31426880
5j92g670_sonnet:31426787
406hc587_ask_agent:31428393

主要语言
TypeScript
星标
471
派生
149
PR 合并指标
30 天内没有已合并 PR

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/TypeScript-TmLanguage 的其他 Issue

查看 microsoft/TypeScript-TmLanguage 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。