MagicStack / MagicStack/MagicPython

Incorrect syntax coloring for formatted-raw string literals (example: fr"{some_path_here}\some_file_here.txt")

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

説明

Hi,

I wanted to draw attention to the fact that formatted-raw string literals are syntax highlighted by MagicPython as if they were ordinary raw string literals, without any special syntax highlighting given to the contents of the curly braces. See examples below:

![frstrings](https://user-images.githubusercontent.com/37582022/44036651-2e88da12-9f0a-11e8-829f-5ff8621bbde0.PNG)

Is there any chance this could fixed/enhanced?

Cheers!

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

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

調査の方向性

まず、フォーマット済み raw 文字列リテラルの構文ハイライト規則を見つけ、通常の raw 文字列とどのように扱いが異なるかを比較します。報告された例 `fr"{some_path_here}\\some_file_here.txt"` を使用して、中かっこ内の内容が別個のハイライトを受けることを確認します。

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

評価

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

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

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