EditorSyntax icon indicating copy to clipboard operation
EditorSyntax copied to clipboard

Cmdlet parameter scopes

Open keith-hall opened this issue 7 years ago • 2 comments
trafficstars

Environment

  • Sublime 3176
  • Monokai

Issue Description

Cmdlet parameters are scoped as assignment operators...

Screenshots

image

Expected Behavior

The scope of the - should be punctuation.definition.parameter, and the scope of the parameter should be variable.parameter, this is currently unscoped.

Code Samples

Get-Service -Name test

Extra Notes

Also, test in the code snippet above should probably be scoped as string.unquoted

keith-hall avatar May 31 '18 09:05 keith-hall

This is related to #76

omniomi avatar May 31 '18 12:05 omniomi

Was thinking about this on the drive to work... I think I may have a way to define function invocation from start to finish in a way that we can grab even unapproved verbs and private functions without Verb-Noun without clobbering anything else. Will experiment with it later and hopefully we can nail a bunch of issues with one little string of regex ;D

omniomi avatar May 31 '18 13:05 omniomi