Skip to content

Svelte 5 events lack syntax highlight #2881

@ilblog

Description

@ilblog

Description

While legacy mode events, like on:click={} of on:scroll={} etc... is nicely highlighted (combination of red and green), using Svelte 5 events, displays events in green colour, which is the same, as any other attribute. Thus it degrades a readability of the code.

Image Image

Proposed solution

Make events onclick, onsomething... coloured in different colour

Alternatives

No response

Additional Information, eg. Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions