Skip to content

disallow semicolons in declaration tags#18312

Merged
dummdidumm merged 1 commit into
declaration-tagsfrom
declaration-tags-no-semis
May 28, 2026
Merged

disallow semicolons in declaration tags#18312
dummdidumm merged 1 commit into
declaration-tagsfrom
declaration-tags-no-semis

Conversation

@Rich-Harris

Copy link
Copy Markdown
Member

I think we should disallow semicolons in declaration tags, because syntactic ambiguity is always unfortunate and ;} (the little-used 'winking grinch' emoticon) looks pretty ugly.

We should definitely remove it from code generated with print, even though it unfortunately requires us to duplicate some of the logic in the ts printer.

@changeset-bot

changeset-bot Bot commented May 27, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 5cb28e2

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@github-actions

Copy link
Copy Markdown
Contributor

Playground

pnpm add https://pkg.pr.new/svelte@18312

@svelte-docs-bot

Copy link
Copy Markdown

@dummdidumm dummdidumm merged commit 2431be8 into declaration-tags May 28, 2026
17 checks passed
@dummdidumm dummdidumm deleted the declaration-tags-no-semis branch May 28, 2026 19:22
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.

2 participants