PowerShell / EditorSyntax

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

splatting variable highlighting. #78

Closed omniomi closed 6 years ago

omniomi commented 6 years ago

Quick fix to correct the highlighting of splat variables. (reported by /u/da_chicken on reddit.)

Before: splatting-before

After: splatting-after

Need to eventually rework how variables are scoped but this covers splatting for now.

TylerLeonhardt commented 6 years ago

Does this affect arrays and hash tables at all?:

@{}
@()
omniomi commented 6 years ago

@tylerl0706, No sir. Although hashtables need some work of their own for other reasons.

splatting

TylerLeonhardt commented 6 years ago

Same deal before - I'll wait for anyone else to take a look and if no, I'll just merge this in.

Thanks for all your awesome work!

omniomi commented 6 years ago

...linking

This takes care of issue #52.

TylerLeonhardt commented 6 years ago

fun fact, if you say in the original comment

fixes #52 or resolves #52

GitHub will close that issue on merging.