Skip to content

Cmdlet parameter scopes #112

Open
Open

Description

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

Activity

  1. omniomi commented on May 31, 2018

    @omniomi
    Contributor

    This is related to #76

  2. omniomi commented on May 31, 2018

    @omniomi
    Contributor

    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

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions