No Syntax Highlighting for `enum` declarations

Open
#209 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
powershell
Domain
tooling

Research direction

Reproduce the report by opening a .ps1 or .psm1 file containing an enum declaration in VS Code, then trace the PowerShell syntax-highlighting grammar used by EditorSyntax. Done means enum declarations receive syntax highlighting without regressing existing PowerShell highlighting; compare the result with the behavior described in the issue.

Written by the indexing model from the issue text.

Description

Prerequisites
  • I have written a descriptive issue title.
  • I have searched all issues to ensure it has not already been reported.
  • I have read the troubleshooting guide.
  • I have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.
Summary

Syntax highlighting for enum declarations in VS Code is non-existent:

image

PowerShell Version
Name                           Value
----                           -----
PSVersion                      7.1.3
PSEdition                      Core
GitCommitId                    7.1.3
OS                             Microsoft Windows 10.0.19043
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}       
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0
Visual Studio Code Version
1.60.0-insider
49af1cbe00271ac2ea36cfc5f7352fe31a7b0094
x64
Extension Version
ms-vscode.powershell@2021.5.1
ms-vscode.powershell@2021.6.2
ms-vscode.powershell-preview@2021.8.0
Steps to Reproduce

Open any .ps1 or .psm1 file with an enum declaration.

Visuals

No response

Logs

No response

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

Similar issues

More DevTools issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.