Skip to content

Dot notation broken inside parens. #15

Closed

Description

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.

Activity

  1. gravejester commented on Aug 1, 2016

    @gravejester
    Contributor

    Yeah, I know what's causing this. It's the part trying to match the property of an object. I'm seeing too many issues with this, so I'm going to disable it entirely and push an update.

  2. omniomi commented on May 21, 2018

    @omniomi
    Contributor

    Fixed by #94

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions