Improve `SyntaxError` suggestions for common operator typos and cross-language mistakes
未关闭
还没有人认领这个 Issue。
interpreter-core
topic-parser
type-feature
- 主要语言
- Python
- 星标
- 77.2k
- 派生
- 36k
- PR 合并指标
- PR 指标待抓取
描述
As I proposed in #151129 (comment), we can also add suggestions for
<>("not equal" in Pascal and Python 2), "=<", "=>" and "=!" (typo in "<=", ">=" and "!="), "===" ("is" in JavaScript and PHP).
suggested by @serhiy-storchaka
"===" ("is" in JavaScript and PHP).
And Mathematica.
follow up #150906
I'll submit a PR for this . shortly
Linked PRs
- gh-151375
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
先查看 #150906 中的讨论和链接的 gh-151375 PR,然后跟踪针对所列运算符拼写错误的现有 SyntaxError 建议行为。完成的标准是:按要求的跨语言建议和错误输入运算符建议都得到一致覆盖;如果相应测试属于现有更改的一部分,也应包含这些测试。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- compilers
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 30/100