Zed Crystal Extension Release 0.0.2

A new version of the Crystal extension for Zed has been released, this one moving to the new Crystal tree-sitter instead of the Ruby tree-sitter. Things like outline and syntax highlighting should be significantly better, especially around macros. It should be available to download in Zed directly. Feedback welcome!

8 Likes

This is awesome!

I’ve been working on a shard recently and I’ve been trying Zed at home, but due to issues around macros, I kept coming back and forth from VSCode since the highlighting there worked better. I just installed the new version and now all the code, including macros, gets correctly highlighted.

One small problem that I noticed is that ‘with’ used outside the context of a keyword breaks the highlighting in some cases:

def f(x, y)
  g with: x, and: y
end

def g(**kwargs)
  puts kwargs
end

f 1, 2

Other than that, everything is working great! Even the heredocs have working highlighting:

Thank you so much for the effort that is being put into crystal tooling!

1 Like

Ahh yeah that is a known issue type declaration with keywords · Issue #39 · crystal-lang-tools/tree-sitter-crystal · GitHub, tree sitter doesn’t seem to like re-using keywords for normal identifiers. It should be fixed with updates in tree sitter 0.25

Hi, is there a way to make the font display bigger?

I use Arch linux with a 4K monitor, and set fonts scale to 2.0, but display keeping 100%, get following screenshot.

But my others application font not as small as zed, because fonts bigger.

Thanks

Version 0.0.3 has just been released with some highlighting fixes and ECR support!

5 Likes