Skip to content

fixes syntax highlighting on lower case component usage#15496

Merged
matthewp merged 1 commit intomainfrom
lowercase-syntax
Feb 13, 2026
Merged

fixes syntax highlighting on lower case component usage#15496
matthewp merged 1 commit intomainfrom
lowercase-syntax

Conversation

@matthewp
Copy link
Contributor

@matthewp matthewp commented Feb 13, 2026

Summary

  • tighten the TextMate grammar so only exact style/script tags open language scopes
  • add a snapshot fixture covering lowercase component tags like <styled.button>

Fixes #14680.

Tests

  • New snapshot test.

Docs

N/A, bug fix

@changeset-bot
Copy link

changeset-bot bot commented Feb 13, 2026

🦋 Changeset detected

Latest commit: dbd0042

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@matthewp matthewp marked this pull request as ready for review February 13, 2026 13:51
@matthewp matthewp changed the title fix: avoid style/script prefix highlighting fixes syntax highlighting on lower case component usage Feb 13, 2026
Copy link
Member

@Princesseuh Princesseuh left a comment

Choose a reason for hiding this comment

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

Awesome work!

@matthewp
Copy link
Contributor Author

Thanks, it was totally me, a human, that did it all.

@matthewp matthewp merged commit eb7cdda into main Feb 13, 2026
42 of 43 checks passed
@matthewp matthewp deleted the lowercase-syntax branch February 13, 2026 15:09
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

Successfully merging this pull request may close these issues.

🐛 BUG: Syntax highlighting breaks with lowercase component names

2 participants