Skip to content

Loudly error for invalid :global placement #14906

@dummdidumm

Description

@dummdidumm

Describe the bug

In https://discord.com/channels/457912077277855764/1325334674784129035 someone was confused by a certain syntax failing with a "unclosed comment" error. Turns out it's us no erroring on a wrong :global placement, which leads to subsequent wrong "comment this out" logic.

The solution is to throw a validation error here.

Reproduction

playground link

Logs

No response

System Info

irrelevant

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    cssStuff related to Svelte's built-in CSS handling

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions