EditorSyntax icon indicating copy to clipboard operation
EditorSyntax copied to clipboard

'select' and 'sort' aliases not highlighted.

Open MovGP0 opened this issue 8 years ago • 1 comments

In the following snippet

Get-AzureVMImage 
| where ImageFamily -eq $imageFamily
| sort PublishedDate -Descending 
| select -ExpandProperty ImageName -First 1 

the aliases sort and select are not highlighted like the where alias, besides representing the same type of filter/alias.

When expanding the snippet to

Get-AzureVMImage `
| Where-Object ImageFamily -eq $imageFamily `
| Sort-Object PublishedDate -Descending `
| Select-Object -ExpandProperty ImageName -First 1

Where of Where-Object will be highlighted as keyword, Sort-Object won't be highlighted and Select-Object will be highlighted as command.

Expected behavior:

  • all alias should be highlighted the same way.
  • all commands (Verb-xxx) should be highlighted the same way.

Note: there might be other keywords that are effected by this issue.

MovGP0 avatar Mar 09 '17 16:03 MovGP0

sortselect

This is partially resolved.

omniomi avatar May 21 '18 20:05 omniomi