Cmdlet parameter scopes

Open
#112 2 comments 0 reactions 1 assignee View on GitHub

@omniomi is already working on this.

Since May 31, 2018.

Assessment

This issue has not been assessed yet.

Description

bug enhancement
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

Dominant language
PowerShell
Stars
151
Forks
55
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from PowerShell/EditorSyntax

All issues in PowerShell/EditorSyntax

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.