Skip to content

'select' and 'sort' aliases not highlighted. #39

Open
@MovGP0

Description

@MovGP0

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions