Skip to content

Powershell syntax highlighting breaks on literal property containing variable #69

@aeschli

Description

@aeschli

From @jmeijrink on February 20, 2018 13:48

Issue Type

Bug

Description

Paste below script block in a window with powershell syntax highlighting:

$someVar."boe"
Write-Host "Color coding is still correct"

$name = "boe"
$someVar."$name"
Write-Host "Color coding is broken by variable in literal property"

VS Code Info

VS Code version: Code - Insiders 1.21.0-insider (6309a7734b0b0876b263a6a9cb526fc281100089, 2018-02-20T10:24:00.306Z)
OS version: Windows_NT x64 10.0.17074

System Info
Item Value
CPUs Intel(R) Core(TM) i7-4712HQ CPU @ 2.30GHz (8 x 2295)
Memory (System) 15.91GB (6.00GB free)
Process Argv C:\Program Files\Microsoft VS Code Insiders\Code - Insiders.exe
Screen Reader no
VM 0%
Extensions (4)
Extension Author (truncated) Version
python ms- 2018.1.0
PowerShell ms- 1.5.1
team ms- 1.122.0
vscode-docker Pet 0.0.24
Reproduces only with extensions

image

Copied from original issue: microsoft/vscode#44035

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