mirror of
https://github.com/typst/typst
synced 2025-05-13 20:46:23 +08:00
- Makes errors fatal, so that a phase is only reached when all previous phases were error-free - Parsing still recovers and can produce multiple errors - Evaluation fails fast and can thus produce only a single error (except for parse errors due to an import) - The single error that could occur during execution is removed for now - Removes Value::Error variant
36 lines
536 B
XML
36 lines
536 B
XML
// Test escape sequences.
|
|
|
|
---
|
|
// Escapable symbols.
|
|
\\ \/ \[ \] \{ \} \# \* \_ \= \~ \` \$
|
|
|
|
// No need to escape.
|
|
( ) ; < >
|
|
|
|
// Unescapable.
|
|
\a \: \; \( \)
|
|
|
|
// Escaped comments.
|
|
\//
|
|
\/\* \*\/
|
|
\/* \*/ *
|
|
|
|
// Unicode escape sequence.
|
|
\u{1F3D5} == 🏕
|
|
|
|
// Escaped escape sequence.
|
|
\u{41} vs. \\u\{41\}
|
|
|
|
// Some code stuff in text.
|
|
let f() , ; : | + - /= == 12 "string"
|
|
|
|
---
|
|
// Unicode codepoint does not exist.
|
|
// Error: 1-11 invalid unicode escape sequence
|
|
\u{FFFFFF}
|
|
|
|
---
|
|
// Unterminated.
|
|
// Error: 6 expected closing brace
|
|
\u{41*Bold*
|