-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Add syntax highlighting support for Powershell scripts #3123
Comments
I wasn't able to get it to work either. I'm not even sure why and I'm not sure if we'll ever know why. |
I am trying with a fork I made of the tree-sitter grammar. I think I'll make it work soon. |
I created an issue with them. Hopefully, they'll get it sorted as well. |
It looks like that grammar is a work-in-progress based on the TODOs in the README, and it has a generation failure on the latest |
It almost looks abandoned, although I'd be a bit surprised seeing as it should be the "official" one. |
So, I started adding highlight queries on my fork, then I realized that the parser parsed my powershell file all wrong. Someone probably should start to do the grammar from scratch. This one is just broken. I might do it one day. |
This Page describes the PowerShell grammar. This will be very helpful when making the tree-sitter grammar. |
This looks like an active LSP for PowerShell - https://github.com/PowerShell/vscode-powershell. But I'm unsure how to install it use it with Helix. |
I don't recall if it has semantic highlighting but I've used it in neovim. The repo states in the first few paragraphs of the README that the vscode extension is basically a wrapper for PowerShellEditorServices if that helps you search for helix specific references. |
Thanks. I've spent a few hours searching for "helix powershell". Unfortunately, this thread is about the only thing that comes up. Up till now all the LSP's I needed have been available through npm, cargo, pip. So getting this thing installed will be the first step. |
Hi @Joe-Zer0 Unfortunately, this only implements auto-completion for PowerShell scripts, not syntax highlighting. |
@lrottach - Thank you, that's exactly what I needed! EDIT: |
The tree-sitter site now mentions this grammar from Airbus CERT. |
Describe your feature request
Edit: The following tree-sitter grammar doesn't work:
Treesitter: https://github.com/powershell/tree-sitter-powershell
The text was updated successfully, but these errors were encountered: