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

Extend Tree Sitter HTML Grammar? #160

Open
lougreenwood opened this issue Aug 26, 2024 · 0 comments
Open

Extend Tree Sitter HTML Grammar? #160

lougreenwood opened this issue Aug 26, 2024 · 0 comments

Comments

@lougreenwood
Copy link

It seems that a Tree Sitter language can extend another: tree-sitter/tree-sitter#646 (comment)

When making some improvements to the zed-ember extension for the Zed editor I noticed some major inconsistencies between how HTML & Glimmer templates are highlighted.

when I inspected the syntax tree, I can see that they differ greatly...

Screenshot 2024-08-26 at 10 59 52
Screenshot 2024-08-26 at 10 59 41

I wonder, should we consider building our grammar on top of HTML for maximum compatibility with existing HTML grammar?

@lougreenwood lougreenwood changed the title Extend Tree Sitter HTML? Extend Tree Sitter HTML Grammar? Aug 26, 2024
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

1 participant