Skip to content

feat: improve error message in case of node starting with for #1173

@a-h

Description

@a-h
templ about() {
	<p><b>Free food and drinks</b> for everyone involved.</p>
}

Results in the error:

parsing error: for: missing opening brace

The error message would be better if it gave an explanation of how to resolve.

parsing error: for: missing opening brace, if this is not a for loop, write `{ "for" }` to escape the Go keyword

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions