MagicStack / MagicStack/MagicPython
Syntax Highlighting Error - Inconsistent Scoping for Keywords
未关闭
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 1.4k
- 派生
- 98
- PR 合并指标
- 30 天内没有已合并 PR
描述
- Editor name and version:
- Sublime Text 3
- Version 3.2.2, Build 3211
- Platform:
- MacOS (Catalina)
- Color scheme:
Link to a repository with my slightly customized color schemes.
They are slight variations to the Material and Materialize color schemes.
-
MagicPython version: 1.1.1 (according to my package.json)
-
A screenshot:
- 5-10 lines of surrounding code:
def syntax_bug(example):
# When code scoped as `keyword.operator.logical.python` are
# used outside the scope of `meta.function-call.*.python`,
# the keywords
if "keywords" not in "function-call":
print("logical operator keywords highlight correctly")
# `is` and `not` are scoped as `keyword.control.flow.python`
# when used inside a function-call
if "keywords" in "function-call":
print(
"keyword highlighting" is not "yellowish-green"
or "greenish-yellow"
)
outside_function_call = (
"keyword highlighting" is not "yellowish-green" or "greenish-yellow"
)
return outside_function_call
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
在 Sublime Text 3 中使用 MagicPython 1.1.1 重现报告的 Python 示例,并检查所示运算符在函数调用内部和外部分别获得哪些作用域。当关键字作用域在两种上下文中保持一致,且示例按预期高亮显示时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, python
- 领域
- tooling
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100