C# / Dotnet lexer parsing generic (template) return types fails
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 76/100
調査の方向性
Pygments の C# lexer から始め、メソッドの戻り値型に対する正規表現を調べます。issue には dotnet.py に対する提案パッチが含まれています。ジェネリックな戻り値型を含め、2 つの GenericResult の例のハイライトを比較し、両方の形式について lexer テストを追加または更新して、関連するテストスイートを実行します。両方のメソッド名が一貫してハイライトされれば完了です。
索引モデルが issue の本文から書いたものです。
説明
In C# , code may return a "un-typified" (don't know if this is a real word) type:
public GenericResult Connect(IPAddress ip)
Using Generics (the C# implementation of Templates), typified to 'bool' it may look like this:
public GenericResult<bool> Connect(IPAddress ip)
Using the Latex minted package to generate nice code listings, this lead to incorrect and inconsistent formatting:
\begin{minted}{csharp}
public GenericResult MeLiBu_ReceiveFrame(MeLiBu.IMeLiBuFrameHeader frameHeader, List<byte> rawBytesReceived = null);
\end{minted}
\begin{minted}{csharp}
public GenericResult<MeLiBu.IMeLiBuFrame> MeLiBu_ReceiveFrame(MeLiBu.IMeLiBuFrameHeader frameHeader, List<byte> rawBytesReceived = null);
\end{minted}
Before Patch:
Changing the Regex in the Lexer fixes this, please see attached patch:
After Patch (notice the now colored method name MeLiBu_ReceiveFrame):
However, I'm not familar with your unit testing or was unable to find guidelines or similar on how you want a pull-request to be formatted, so please excuse posting this as issue.
- 主要言語
- Python
- スター
- 2.2k
- フォーク
- 929
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
pygments/pygments のほかの issue
-
HareLexer splits binary integer literals into a number and a name対応中かも @ningkexin96 が 10 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 2 日以内に返信
-
Home page sidebar: "A Pocoo project" link lands on an expired certificate; two logos without alt text対応中かも @ekanshul が 31 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
メンテナーはふだん 2 日以内に返信
-
ansiyellow has incorrect hex code対応中かも @ump45nose が 45 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
メンテナーはふだん 2 日以内に返信
-
lineseparator in HTMLFormatter can no longer be used to add line breaks in HTML対応中かも @ump45nose が 45 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 2 日以内に返信
-
MarkdownLexer matches outdated mime type対応中かも @Jerry-val が 47 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
メンテナーはふだん 2 日以内に返信
pygments/pygments の issue をすべて見る
似ている issue
-
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
WLAN-Pi/wlanpi-profiler#341 ·
メンテナーはふだん 1 日以内に返信
-
Memory leak: the shared `validation_aborted_error` keeps every traceback it is raised through対応中かも @Fire162 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
graphql-python/graphql-core#287 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
roman-corgi/ctc-dip#160 ·
メンテナーはふだん 1 日以内に返信
-
type-bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
render_findings.py reads and writes in the host's default encoding, so findings.html breaks on a cp1252 Windows host対応中かも @Aaqibhafeezkhan が今日担当しました。 オープンbug good first issue mentored python size: XS up-for-grabs
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
dheerajjha/mcp-migrate#366 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信