Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cmdlet parameter scopes #112

Open
keith-hall opened this issue May 31, 2018 · 2 comments
Open

Cmdlet parameter scopes #112

keith-hall opened this issue May 31, 2018 · 2 comments
Assignees

Comments

@keith-hall
Copy link
Contributor

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

@omniomi
Copy link
Contributor

omniomi commented May 31, 2018

This is related to #76

@omniomi
Copy link
Contributor

omniomi commented May 31, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants