Variables with curly braces are not highlighted correctly

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

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

評価

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

調査の方向性

Start by reproducing the PowerShell snippet in a supported editor and compare highlighting for global:PROJ_ROOT with and without curly braces. The payload names no source file or test; trace the syntax-highlighting rules and add regression coverage showing both forms receive the same highlighting.

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

説明

Prerequisites
  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.
Steps to reproduce

The global:PROJ_ROOT should be highlighted the same on both lines, regardless of curly braces

${script:compile} = {
  ${global:PKG_BULD_DIR} = "$global:PROJ_ROOT\tmp\${PKG_NAME}\${PKG_PLATFORM}\${PKG_ARCH}"
  ${global:PKG_INST_DIR} = "${global:PROJ_ROOT}\out\${PKG_NAME}\${PKG_PLATFORM}\${PKG_ARCH}"
}

Originally from @valord577 in https://github.com/microsoft/vscode/issues/239461

Expected behavior

The global:PROJ_ROOT should be highlighted the same on both lines, regardless of curly braces

Actual behavior

Image
Error details

Environment data
N/A
Version

742f0b5d4b60f5930c0b47fcc1f646860521296e

Visuals

No response

Originally from @valord577 in https://github.com/microsoft/vscode/issues/239461

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

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

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

はじめの一歩

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

PowerShell/EditorSyntax のほかの issue

PowerShell/EditorSyntax の issue をすべて見る

似ている issue

DevTools の issue をもっと見る

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

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