MagicStack / MagicStack/MagicPython

Python modulo operator parsed in a string

未关闭
#263 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
1.4k
派生
98
PR 合并指标
30 天内没有已合并 PR

描述

* **Editor name and version**: Visual Studio Code 1.86.2
* **Platform**: macOS
* **Color scheme**:
* **MagicPython version**: https://github.com/microsoft/vscode/pull/164191
* **A sreenshot**:
![PixelSnap 2024-02-21 at 22 47 26@2x](https://github.com/MagicStack/MagicPython/assets/2276355/cb1f8e6f-5fb1-4497-9b93-e246d2a50971)

* **5-10 lines of surrounding code**:
```
print('10 % over')
print("10 % over")
print("""10 % over""")

print('10 % 2')
```

贡献指南

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

调研方向

从提供的 Python 复现程序开始,跟踪字符串内容的语法高亮入口点。确认 `%` 在单引号、双引号和三引号字符串中的分类方式,然后验证取模运算符在字符串外仍能被正确高亮,而不会在字符串内被当作代码处理。

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

评估

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

把新 issue 发到你的邮箱

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