MagicStack / MagicStack/MagicPython
Wrong highlight for raw string
未關閉
還沒有人認領這個 Issue。
- 主要語言
- JavaScript
- 星號
- 1.4k
- 分支
- 98
- PR 合併指標
- 30 天內沒有已合併 PR
描述
- Editor name and version: VS Code 1.81.1
- Platform: any
- Color scheme: any
- MagicPython version: 7d0f2b22a5ad8fccbd7341bc7b7a715169283044
- A sreenshot:
Expected
Actual: The \ of a raw string is the \ and not the escape character, but the hignlight still treats them as escapes.
- 5-10 lines of surrounding code:
print(r"C:\Users\test")
Originally from @AuroraTea in https://github.com/microsoft/vscode/issues/190519
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先,使用 MagicPython 在 VS Code 1.81.1 中重現回報的 Python 程式碼片段,並將語法醒目顯示與預期的螢幕擷取畫面和實際的螢幕擷取畫面進行比較。當 raw string 中的反斜線不再被醒目顯示為跳脫字元,而一般跳脫序列仍保留其醒目顯示時,工作即完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- javascript, python
- 領域
- tooling
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100