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

Enumeration support #29

Open
daviwil opened this issue Dec 19, 2016 · 12 comments
Open

Enumeration support #29

daviwil opened this issue Dec 19, 2016 · 12 comments
Milestone

Comments

@daviwil
Copy link
Contributor

daviwil commented Dec 19, 2016

From @Satak on November 24, 2015 7:49

The whole enumeration / enum keyword feels like it's not implemented to have a support for it. Doesn't highlight the keyword or it's content and doesn't offer any snippets.

Copied from original issue: PowerShell/vscode-powershell#26

@daviwil
Copy link
Contributor Author

daviwil commented Dec 19, 2016

From @Satak on November 24, 2015 17:52

You can see that enum keyword, the name or it's content is not color coded
image

@daviwil
Copy link
Contributor Author

daviwil commented Dec 19, 2016

This seems to be a problem with the TextMate bundle we're using from Sublime Text. GitHub also uses it, this is how the same code gets highlighted here:

enum test
{
    listItem1
    listItem2
    listItem3
}

Looks like there's already a bug filed against the Sublime Text repo for this:

SublimeText/PowerShell#124

@Jaykul, any interest in trying to fix that one?

@daviwil
Copy link
Contributor Author

daviwil commented Dec 19, 2016

From @adbertram on December 14, 2016 16:30

I just ran into this today as well. It would be nice to at least get syntax coloring for enums.

@daviwil
Copy link
Contributor Author

daviwil commented Dec 19, 2016

From @rkeithhill on December 19, 2016 0:51

Shouldn't this be moved to http://github.com/powershell/editorsyntax and closed here?

@daviwil
Copy link
Contributor Author

daviwil commented Dec 19, 2016

Yep!

@kborowinski
Copy link
Contributor

@omniomi Could you have a look at enumerator coloring in spare time? (#29)

@JosKrause
Copy link

Any update on this, we're 3 years later now #curious

@msftrncs
Copy link
Contributor

@JosKrause, have you a chance to look at PR #155? In that PR I have a more complete class and enum scoping. I could probably try to separate that out to a new PR. If you have a chance, also look at PR #156, it demonstrates a more elaborate statement syntax based scoping.

@edhaack
Copy link

edhaack commented Mar 25, 2020

Sure would be nice to treat "enum" as a real thing... finally.

@Satak
Copy link

Satak commented Mar 25, 2020

Soon this turns 5 years 😁

Good things come to those who wait

@Satak
Copy link

Satak commented Jul 31, 2020

This should finally fix this issue: https://github.com/PowerShell/vscode-powershell/releases/tag/v2020.7.0-preview

@brandonavant
Copy link

Looks like there's still no fix for this, 6 years later...

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

8 participants