extensions
extensions copied to clipboard
HAML
Check for existing issues
- [X] Completed
Language
HAML
Tree Sitter parser link
No response
Language server link
No response
Misc notes
This isn't a language per se; it's a markup language. It would be nice for us Rails developers who work in HAML frequently to have some syntax coloring.
https://github.com/haml/haml
This was also requested as a comment in this issue for a similar markup language, slim: https://github.com/zed-industries/extensions/issues/140
This is my #1 barrier / frustration.
This is one of the main things holding me back from converting from VS Code to Zed - No syntax highlighting for my HAML files is a big step backwards in productivity. The Ruby syntax highlighting is great, just hoping to see it incorporate HAML files as well!
I'd be happy to help the Zed team on this if needed 👍
There has been an excellent implementation of the Slim templating language, which prompted us to switch entirely to Zed from Sublime Text and VS Code. I'm confident that porting HAML would be quite similar.
Teyler7, you could perhaps open a PR similar to this one, but for HAML.
I have something very basic working over at https://github.com/davidcornu/zed-haml based on https://github.com/vitallium/tree-sitter-haml.
https://github.com/davidcornu/zed-haml
Great work mate, installed it myself. At first glance everything works as intended
Fantastic work @davidcornu 👏🏽 I installed it locally (Downloaded your repo, then installed via the 'Developer Extensions' button on the top right of the Extensions view in Zed) and getting some great Syntax highlighting in HAML files now.
The only thing that would make it better would be if the colours of Object names within inline code in the HAML was a different colour like it is in the Ruby code syntax highlighting, but what is there now makes HAML editing SO much better, so thanks again.
Yeah the parser I'm using is still a work in progress. I'm very new to tree sitter but will see if I can contribute some improvements when I have some spare time.
https://github.com/davidcornu/zed-haml
Amazing, thankyou!
Working great!
HAML support has been holding me back from using Zed!