PowerShell / EditorSyntax

PowerShell syntax highlighting for editors (VS Code, Atom, SublimeText, TextMate, etc.) and GitHub!
MIT License
133 stars 45 forks source link

Default keyword inside switch block is not highlighted #88

Closed kborowinski closed 6 years ago

kborowinski commented 6 years ago

Environment

> code-insiders.cmd -v
1.24.0-insider
d29620f2ba89327f51bb6fb2f05dfdd65e2fcafe

> $psEditor.EditorServicesVersion
Major  Minor  Build  Revision
-----  -----  -----  --------
1      7      0      0

> code-insiders.cmd --list-extensions --show-versions
...
ms-vscode.PowerShell@1.7.0
...

> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      5.1.17134.1
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.17134.1
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Issue Description

Default keyword inside switch block is not highlighted:

image

Expected Behavior

Default keyword should be highlighted

omniomi commented 6 years ago

I took a quick peek and the switch block isn't defined so this isn't a quick fix. I've added it to my list and should be able to get it done tonight.

omniomi commented 6 years ago

Fixed by #94