EditorSyntax icon indicating copy to clipboard operation
EditorSyntax copied to clipboard

Asterisk is not recognized as valid function/cmdlet name character

Open schuelermine opened this issue 5 years ago • 1 comments
trafficstars

Environment

  • Editor and Version VS Code
  • Your primary theme: High Contrast Default

Issue Description

The character * is not recognized as part of a function/cmdlet name

Screenshots

Defining such a function...

In VSCode: grafik In PowerShell itself: grafik

Calling such a function/cmdlet...

In VSCode: grafik In PowerShell itself: grafik

To show that the semantics are wrong, too, here's an autocomplete popup:

grafik

Expected Behavior

The asterisk and the rest of the function name should be the same color and the asterisk should not interrupt the function name and cause suggestions to pop up all of a sudden.

Code Samples

function Get-A*A {}
Get-A*A

(GitHub highlighting is also wrong, here)

schuelermine avatar Jun 05 '20 18:06 schuelermine

This is handled in PR #156.

image

msftrncs avatar Mar 03 '21 06:03 msftrncs