LEX-003: unknown escape in a string
Error: the page doesn't build until this is fixed.
A backslash in a string starts an escape: \" for a quote, \\ for a backslash, \n for a new line
and \t for a tab. Any other letter after it is a mistake, often a Windows path.
Fails
page(title: "Shoes", description: "All our running shoes, from light racers to trail shoes.") {
h1 "Shoes"
p "Exports are saved to C:\shop\orders."
}error[LEX-003]: unknown escape `\s`
--> page.hypra:3:30
|
3 | p "Exports are saved to C:\shop\orders."
| ^^
= help: strings know \" \\ \n and \t; write \\ for a backslash
= docs: https://hypralang.dev/rules/lex-003/
1 error, 0 warningsFixed
page(title: "Shoes", description: "All our running shoes, from light racers to trail shoes.") {
h1 "Shoes"
p "Exports are saved to C:\\shop\\orders."
}