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

Support for JS tagged templates? #1

Open
stephenhmarsh opened this issue Jul 25, 2024 · 1 comment
Open

Support for JS tagged templates? #1

stephenhmarsh opened this issue Jul 25, 2024 · 1 comment

Comments

@stephenhmarsh
Copy link

Hi, thanks for writing this. I could only get it to work within a file named with a .groq extension.

It would be great to see support for this syntax highlighting within a JS tagged template literal. Example:

import groq from "groq";

const globalQuery = groq`{
	"siteSettings": *[_id == "siteSettings"][0] {
  	"foo": []
	}
}`;
@juice49
Copy link
Owner

juice49 commented Nov 28, 2024

Hi @stephenhmarsh. I'm sorry for not replying to you sooner!

I completely agree with you. When I initially created the plugin, I couldn't work out how to handle tagged template literals (I'm not sure whether Zed supported it at the time). Things may have changed in Zed now, but I haven't had the time to revisit this. I would like to, and would also be open to contributions if you know how to do it ☺️.

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

No branches or pull requests

2 participants