Skip to content

Conversation

@serkodev
Copy link

@serkodev serkodev commented Dec 15, 2025

Fix #1110, Fix #2739, Fix #2458, Fix #1989, Fix #1779, Fix #1776, Fix #1627, Fix #1970

Before

b

After

a

Notice

  • If </script> is intended as a closing tag but does not appear at the beginning of a line, syntax highlighting will also break (though single-line <script> tags are not affected but semicolon is required):
    <!-- bad -->
    <script lang="ts" context="module">
      const a = 1;</script>
    
    <!-- good -->
    <script lang="ts" context="module">
      const a = 1
    </script>
    <script lang="ts" context="module">const a = 1;</script>
  • If </script> appears as a string and at the beginning of a line, syntax highlighting will break:
    <script lang="ts" context="module">
      const a = `
    </script> <- break
    `;
    </script>
    However, since </script> as a string currently is also not supported by Svelte, so this issue has no impact.

References:

@changeset-bot
Copy link

changeset-bot bot commented Dec 15, 2025

⚠️ No Changeset found

Latest commit: 969f629

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

@serkodev serkodev marked this pull request as ready for review December 15, 2025 16:19
@serkodev serkodev changed the title fix(vscode): sveltejs ts highlighting when trailing type alias misses semicolon fix(syntax): sveltejs ts highlighting when trailing type alias misses semicolon Dec 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment