extensions icon indicating copy to clipboard operation
extensions copied to clipboard

HAML

Open waynehoover opened this issue 1 year ago • 10 comments

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

waynehoover avatar Sep 02 '23 01:09 waynehoover

This is my #1 barrier / frustration.

arbales avatar Mar 16 '24 20:03 arbales

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!

CyberFerret avatar Jun 06 '24 04:06 CyberFerret

I'd be happy to help the Zed team on this if needed 👍

Teyler7 avatar Jul 03 '24 15:07 Teyler7

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.

czj avatar Aug 21 '24 13:08 czj

I have something very basic working over at https://github.com/davidcornu/zed-haml based on https://github.com/vitallium/tree-sitter-haml.

CleanShot 2024-09-13 at 13 37 02@2x

davidcornu avatar Sep 13 '24 17:09 davidcornu

https://github.com/davidcornu/zed-haml

Great work mate, installed it myself. At first glance everything works as intended

avdept avatar Sep 18 '24 05:09 avdept

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.

CyberFerret avatar Sep 19 '24 02:09 CyberFerret

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.

davidcornu avatar Sep 19 '24 13:09 davidcornu

https://github.com/davidcornu/zed-haml

Amazing, thankyou!

Working great!

HAML support has been holding me back from using Zed!

firecall avatar Sep 27 '24 01:09 firecall