MagicStack / MagicStack/MagicPython

Syntax highlighting issue when @ appears as first character after line continuation when indexing is present

オープン
#253 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
1.4k
フォーク
98
PR マージ指標
30日以内にマージされた PR はありません

説明

* **Editor name and version**: VS Code 1.71
* **Platform**: Any
* **Color scheme**: NA
* **MagicPython version**:
* **A sreenshot**:
I would expect syntax highlighting to be the same irrespective of whether the line is broken before or after the @ operator.
![image](https://user-images.githubusercontent.com/38270282/191928430-57478e2a-0077-4ef6-998e-c340ad2537af.png)

* **5-10 lines of surrounding code**:
```python
# Define variables so pylance doesn't complain.
long_variable_name = other_long_variable_name = 1

long_variable_name \
@ other_long_variable_name['some_index']

long_variable_name @ \
other_long_variable_name['some_index']
```

Originally from @tillahoffmann in https://github.com/microsoft/vscode/issues/161435

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

サポート対象のエディターで報告された Python スニペットを再現し、行継続が @ の前に現れる場合と後に現れる場合、およびその後にインデックス付き式が続く場合のハイライトを比較します。行継続と @ 式の構文ハイライト文法におけるエントリーポイントを追跡します。完了条件は、同等の両方の形式が同じハイライトを受けることです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript, python
領域
tooling
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。