Skip to content

$test:/ - colon is not being parsed correctly on string #192

Open
@DanielSSilva

Description

@DanielSSilva

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

image

Expected Behavior

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

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/"```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions