Skip to content

Syntax Highlighting Fails on Where-Object #351

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
richardcox13 opened this issue Nov 29, 2016 · 2 comments
Closed

Syntax Highlighting Fails on Where-Object #351

richardcox13 opened this issue Nov 29, 2016 · 2 comments

Comments

@richardcox13
Copy link

System Details

  • Operating system name and version: Server 2012 R2
  • VS Code version: 1.7.2
  • PowerShell extension version: 0.7.2
  • Output from $PSVersionTable:
Name                           Value
----                           -----
PSVersion                      4.0
WSManStackVersion              3.0
SerializationVersion           1.1.0.1
CLRVersion                     4.0.30319.42000
BuildVersion                   6.3.9600.17400
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0}
PSRemotingProtocolVersion      2.2

Issue Description

Syntax highlighting of

$s = $x['system.applicationHost'].sites.site | Where-Object -Property name -eq -Value  'Site1'

only highlights the Where of Where-Object:

image

(It seems the where keyword is taking precedence over the cmdlet.)

@daviwil
Copy link
Contributor

daviwil commented Nov 29, 2016

Hey @richardcox13, we're tracking this issue over at another repo: PowerShell/EditorSyntax#22. I'll close this issue in favor of the other, please subscribe to it to be notified when the issue gets fixed. Thanks!

@daviwil daviwil closed this as completed Nov 29, 2016
@richardcox13
Copy link
Author

No problem... I did have a quick look, but not that far back :-)

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

No branches or pull requests

2 participants