typst/tests/typ/markup/escape.typ
Laurenz 1ee1d078e2 Fatal errors
- 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
2021-07-30 18:49:19 +02:00

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*