MagicStack / MagicStack/MagicPython
Incorrect function highlighting in raw format (rf) string
還沒有人認領這個 Issue。
- 主要語言
- JavaScript
- 星號
- 1.4k
- 分支
- 98
- PR 合併指標
- 30 天內沒有已合併 PR
描述
I'm getting some incorrect highlighting inside an rf string, in particular for the `.` and `(1)` portions, as well as the curly braces. Take a look:
* **Editor name and version**: VSCode
* **Platform**: Windows
* **Color scheme**: Default
* **MagicPython version**: v1.1.0
* **A sreenshot**:

* **5-10 lines of surrounding code**:
```
for item in (
re.split(rf" ?\r
(?=\d+{match.group(1)})", text)
if (match := re.match(r"1( ?[-.])", text)) is not None
else [text]
):
```
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先,在支援的編輯器中重現所提供的 raw-format 字串,並比較點、`(1)` 和大括號的醒目提示效果。追蹤此範例的語法醒目提示行為;當這些部分與周圍的 Python 運算式一致地醒目提示時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- javascript, python
- 領域
- tooling
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100