Skip to content

Highlight component tags distinctly from HTML elements - #55

Merged
MrSubidubi merged 4 commits into
zed-extensions:mainfrom
eremannisto:feat/highlight-component-tags
Oct 16, 2026
Merged

MrSubidubi merged 4 commits into
zed-extensions:mainfrom
eremannisto:feat/highlight-component-tags

Conversation

@eremannisto

Copy link
Copy Markdown
Contributor

Splits the single (tag_name) @tag rule so capitalized component tags map to @tag.component, while lowercase HTML elements stay @tag. Themes without a tag.component key fall back to tag, so this is non-breaking.

Fixes the inconsistency where .astro colors components and HTML elements identically, while .tsx distinguishes them.

Tested locally as a dev extension and components render distinctly from HTML elements (screenshot below).

Screenshot 2026-09-13 at 21 55 24

This closes #45

@cla-bot

cla-bot Bot commented Sep 13, 2026

Copy link
Copy Markdown

We require contributors to sign our Contributor License Agreement, and we don't have @eremannisto on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@eremannisto

Copy link
Copy Markdown
Contributor Author

@cla-bot check

@cla-bot cla-bot Bot added the cla-signed label Sep 13, 2026
@cla-bot

cla-bot Bot commented Sep 13, 2026

Copy link
Copy Markdown

The cla-bot has been summoned, and re-checked this pull request!

@MrSubidubi MrSubidubi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we combine this into one capture, please? Also, please revert the version bump

@eremannisto

Copy link
Copy Markdown
Contributor Author

Hey, I added the changes, do they align what you were thinking? 😊

@MrSubidubi MrSubidubi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, very much what I was referring to. Thank you!

@MrSubidubi
MrSubidubi merged commit e2c7727 into zed-extensions:main Oct 16, 2026
5 checks passed
@MrSubidubi

Copy link
Copy Markdown
Contributor

And congrats on your first contribution! 🎉

@eremannisto
eremannisto deleted the feat/highlight-component-tags branch October 19, 2026 05:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Highlight component tags distinctly from HTML element tags (parity with TSX)

2 participants