MagicStack / MagicStack/MagicPython
Syntax Highlighting Error - Inconsistent Scoping for Keywords
まだ誰も着手していません。
- 主要言語
- 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.](https://github.com/jarrodchung-dev/custom-sublime-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**:
```python
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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
Sublime Text 3 で MagicPython 1.1.1 を使用して報告された Python の例を再現し、関数呼び出しの内側と外側で、示されている演算子がどのようなスコープを受け取るかを調べる。キーワードのスコープが両方のコンテキストで一貫しており、例が意図どおりにハイライトされれば完了とする。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, python
- 領域
- tooling
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100