$test:/ - colon is not being parsed correctly on string
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 42/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- powershell
- 領域
- tooling
調査の方向性
Reproduce the examples in VS Code using the PowerShell syntax-highlighting support, comparing cases where the colon is followed by /, -, or @ with the plain colon case. Inspect the syntax grammar or entry point responsible for variable highlighting; done means the colon remains associated with $ip in all shown examples.
索引モデルが issue の本文から書いたものです。
説明
Environment
- Editor and Version (VS Code, Atom, Sublime): vscode 1.42.0-insiders
- Your primary theme: Monokai
Issue Description
From my tests, this seems to only happen if the colon is followed by some sort of special character such as - @ / etc
Screenshots

Expected Behavior
It should parse correctly, like this (taken from windows powershell). Notice that the colon is green, since it "belongs" to the variable:

Code Samples
$ip = "192.1.1.1"
###not being parsed###
"pi@$ip:/home/pi/PowerShell_IoT/"
"pi@$ip:-home/pi/PowerShell_IoT/"
"pi@$ip:@home/pi/PowerShell_IoT/"
###parsed correctly when without special characters###
"pi@$ip:home/pi/PowerShell_IoT/"
###correct syntax###
"pi@$ip`:/home/pi/PowerShell_IoT/"```
- 主要言語
- PowerShell
- スター
- 151
- フォーク
- 55
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
PowerShell/EditorSyntax のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
PowerShell/EditorSyntax#224 · コメント 2 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
PowerShell/EditorSyntax#222 · コメント 2 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
PowerShell/EditorSyntax#221 · コメント 2 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
PowerShell/EditorSyntax#220 · コメント 2 件 · リアクション 1 件 ·
-
Issue-Bug
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
PowerShell/EditorSyntax#219 · コメント 2 件 ·
PowerShell/EditorSyntax の issue をすべて見る
似ている issue
-
bug-unconfirmed
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
duckdb/duckdb-python#627 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
spec-kitty/spec-kitty#4854 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
phpstan/phpstan-doctrine#794 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
agentscope-ai/QwenPaw#7921 · コメント 1 件 ·