Skip to content

Svelte 5 snippets are highlighted as errors #1106

@unikitty37

Description

@unikitty37

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

When I try to highlight Svelte 5 code, snippets (not present in Svelte 4) are highlighted as errors:

Image

Is Svelte 5 supported, or is the Svelte support only for version 4 right now?

To Reproduce

Playground link

echo "{#snippet snowflakeIcon()}\n  <Snowflake weight='regular' size='2em' />\n{/snippet}" | chroma -l svelte --html

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions