Skip to content
This repository was archived by the owner on Feb 10, 2026. It is now read-only.
This repository was archived by the owner on Feb 10, 2026. It is now read-only.

Warn when the style attribute is missing a semicolon ; #182

@carson-katri

Description

@carson-katri

A common mistake is writing a style attribute with spaces as delimiters instead of semicolons ;:

<Element style="padding() background(.red)" />

This should log a warning, ideally pointing to the position where the semicolon should be inserted. A message similar to this could be used:

Missing semicolon between modifiers in `style` attribute:

<Element style="padding() background(.red)" />
                         ^ add a `;` semicolon after `padding()`

home_live.swiftui.neex:1:25

Alternatively, spaces could be allowed as a delimiter as well or instead of semicolons.

Metadata

Metadata

Assignees

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