PowerShell / EditorSyntax

PowerShell syntax highlighting for editors (VS Code, Atom, SublimeText, TextMate, etc.) and GitHub!
MIT License
133 stars 45 forks source link

Comments on same line as Function not styled when opening brace is on next line #30

Closed fredskis closed 6 years ago

fredskis commented 7 years ago

I ran into this issue using the PowerShell extension for VS Code and was referred to this project.

Issue Description

When adding comments on the same line as a function where the opening brace is on the next line, the comment doesn't get formatted correctly. I'm using the Dark+ (default dark) theme and comments are green, however, when entered into this line they appear as grey.

As an example:

Function New-Function { #comment here
}

formats fine with a green comment, however,

Function New-Function #comment here
{
}

doesn't format correctly and the comment remains grey.

omniomi commented 6 years ago

Resolved by #94

comments