PowerShell / EditorSyntax

PowerShell syntax highlighting for editors (VS Code, Atom, SublimeText, TextMate, etc.) and GitHub!
MIT License
133 stars 45 forks source link

Asterisk is not recognized as valid function/cmdlet name character #200

Open schuelermine opened 4 years ago

schuelermine commented 4 years ago

Environment

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)

msftrncs commented 3 years ago

This is handled in PR #156.

image