Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Parenthesis not tokenized correctly when there is space preceding it

オープン
#77 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

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

調査の方向性

まず、issue にある括弧のハイライト表示の 2 つの例を再現し、MATLAB の関数呼び出しの句読点をトークン化する文法ルールを調べます。閉じ括弧の前にスペースがある場合とない場合で例のトークンを比較し、両方のケースで string.unquoted.matlab と meta.function-call.command.matlab ではなく punctuation.section.group.end.matlab が生成されれば完了です。

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

説明

When there is a space before the last parenthesis, it is not identified to be the closing paren of the cellfun() function, shown below.
The top two lines have the parens colored yellow (correct), while the bottom two lines show the red/yellow mismatch (incorrect)

Screenshot 2024-03-05 at 12 26 34 PM (3)

The top two have the token
punctuation.section.group.end.matlab

The bottom two dont have that token, but instead have
string.unquoted.matlab
meta.function-call.command.matlab

主要言語
MATLAB
スター
64
フォーク
22
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

mathworks/MATLAB-Language-grammar のほかの issue

mathworks/MATLAB-Language-grammar の issue をすべて見る

似ている issue

MATLAB の issue をもっと見る

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

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