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

Some PowerShell variables aren't highlighted ($Error, $PSVersionTable) #6757

Closed
o-l-a-v opened this issue Mar 16, 2024 · 3 comments
Closed
Labels

Comments

@o-l-a-v
Copy link

o-l-a-v commented Mar 16, 2024

Describe the bug

Some PowerShell variables aren't highlighted.

The following:

```powershell
$SomeVariable
$Error
$PSVersionTable
```

Results in:

image

Related issue:

Expected behaviour

All variables should be highlighted, like highlight.js does it https://highlightjs.org/demo:

image

Related discussion

Additional notes

@o-l-a-v o-l-a-v added the Bug label Mar 16, 2024
@lildude
Copy link
Member

lildude commented Mar 16, 2024

This is a problem with the upstream grammar, not linguist. Please open an issue in the grammar repo.

@lildude lildude closed this as completed Mar 16, 2024
@o-l-a-v
Copy link
Author

o-l-a-v commented Mar 17, 2024

@lildude
Copy link
Member

lildude commented Mar 17, 2024

Yup, that’s grammar we use. Interesting that the VSCode grammar suffers from the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants