Where-Object not coloured correctly.
See original GitHub issueSystem Details
- Operating system name and version: BuildNumber : 15063 Version : 10.0.15063
code -v 1.16.1 27492b6bf3acb0775d82d2f87b25a93490673c6d
$pseditor.EditorServicesVersion Major Minor Build Revision
1 4 1 0
code --list-extensions --show-versions
eamodio.gitlens@5.1.0 filipw.scriptcsRunner@0.1.0 formulahendry.code-runner@0.7.1 groksrc.ruby@0.0.6 jcanero.hoogle-vscode@0.0.4 johnpapa.azure-functions-tools@0.3.1 justusadam.language-haskell@2.3.2 ms-mssql.mssql@1.1.0 ms-vscode.azurecli@0.2.0 ms-vscode.csharp@1.12.1 ms-vscode.PowerShell@1.4.3 ms-vscode.vscode-azureextensionpack@0.0.6 ms-vsts.team@1.122.0 msazurermtools.azurerm-vscode-tools@0.3.7 PeterJausovec.vscode-docker@0.0.17 rebornix.Ruby@0.15.0 usqlextpublisher.usql-vscode-ext@0.2.4 Vans.haskero@1.3.1 VisualStudioOnlineApplicationInsights.application-insights@0.4.1 vsciot-vscode.azure-iot-toolkit@0.2.2 wayou.vscode-todo-highlight@0.5.11
$PSVersionTable Name Value
PSVersion 5.1.15063.608 PSEdition Desktop PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…} BuildVersion 10.0.15063.608 CLRVersion 4.0.30319.42000 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1
### Issue Description
Where-Object is miscoloured. The verb 'where' is coloured, but the noun 'object' is not.
### Attached Logs
Follow the instructions in the [README](https://github.com/PowerShell/vscode-powershell#reporting-problems)
about capturing and sending logs.

Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:10
This bugs me to. This is what I have for my
PowerShellSyntax.tmLanguage
installed within my vscode (1.16.1) on OSX.File itself appears to be very different from https://github.com/PowerShell/EditorSyntax/blob/master/PowerShellSyntax.tmLanguage
foreach
has an exclusion withobject
.where
should get the same treatment or outright removed as @rkeithhill recommended.Adding the following (in patterns section) with the exclusion above for
where
corrects the issue in my case.Yep, we’ve overhauling the syntax definition, hoping to have that ready soon. Thanks for your PR! I’ll close this issue now.