E001

Error

Syntax and structure

E001 — Text the compiler cannot read

A character that begins nothing the language has, or a string, comment or splice that never closes. The file is not read past it.

What the compiler said

error[E001]: Unterminated string literal --> src/App.wf:2:13 | 2 | Heading("Hello).h1 | ^ = docs: https://webfluent.monzeromer.dev/errors/E001

The fix

Broken

wf

page P(path: "/", title: "T", description: "D") { Heading("Hello).h1 }

Fixed

wf

page P(path: "/", title: "T", description: "D") { Heading("Hello").h1 }

Close the string, comment or splice the message names. A character that begins nothing (| alone, a stray @) is usually a typo for the one beside it on the keyboard.

Each example is a whole program: it is all of src/App.wf in a project with no other .wf file (trying an example).

lints cannot lower it: it would ship a broken page.