Skip to content

Where-Object does not seem to highlight properly #139

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dotps1 opened this issue Nov 23, 2015 · 1 comment
Closed

Where-Object does not seem to highlight properly #139

dotps1 opened this issue Nov 23, 2015 · 1 comment

Comments

@dotps1
Copy link

dotps1 commented Nov 23, 2015

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
Copy link

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.

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

No branches or pull requests

3 participants