SublimeText / PowerShell

Support for the MS PowerShell programming language.
MIT License
313 stars 78 forks source link

Where-Object does not seem to highlight properly #139

Closed dotps1 closed 6 years ago

dotps1 commented 8 years ago

Using the following code the 'Where-Object' does not hightlight properly.

Get-Process | Where-Object -FilterScript {
    # do things
}

The 'Where' is identified but the '-Object' is not.

(Snippit from VSCode) image

Thanks.

elpresidento commented 8 years ago

It looks where-object still is not fixed find <string>(?&lt;!\w)(?i:foreach-object)(?!\w)</string> to replace <string>(?&lt;!\w)(?i:foreach-object|where-object)(?!\w)</string> find |var|where(?!=-object)|while) to replace |var|where(?!-object)|while) Then where-object works fine.