Skip to content

Dot notation broken inside parens. #15

@gerane

Description

@gerane

This might be related to #14

It looks like just having a dot inside of parens breaks the Syntax Highlighting in the latest Insiders Preview 7/27

Sample Code:

if ($Host.name -eq 'ConsoleHost')
{
    if (! (Get-Item ENV:VSCODE_PID -ErrorAction SilentlyContinue))
    {
        ## Set Location
        Set-Location -Path Repo:
    }
}

This is how it is by default.

1syntaxparens

Removing the dot makes everything OK.

1syntaxparens2

Just having a dot at end of Var breaks syntax highlighting.

1syntaxparens3

This one is pretty bad, it breaks a quite a lot of the PowerShell I see. May have to manually load an old syntax.

Off Topic: What syntax highlight method does Github use? they seem to have decent results with PowerShell. Always been better than tmtheme overall.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions