summaryrefslogtreecommitdiff
path: root/tests/typ/text/escape.typ
blob: e7ec9023eca5cb4bdcc10059fc09128a763ce294 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Test escape sequences.

---
// Escapable symbols.
\\ \/ \[ \] \{ \} \# \* \_ \+ \= \~ \
\` \$ \" \' \< \> \@ \( \) \A

// No need to escape.
( ) ;

// Escaped comments.
\//
\/\* \*\/
\/* \*/ *

// Unicode escape sequence.
\u{1F3D5} == 🏕

// Escaped escape sequence.
\u{41} vs. \\u\{41\}

// Some code stuff in text.
let f() , ; : | + - /= == 12 "string"

// Escaped dot.
10\. May

---
// Unicode codepoint does not exist.
// Error: 1-11 invalid unicode codepoint: FFFFFF
\u{FFFFFF}

---
// Unterminated.
// Error: 6 expected closing brace
\u{41[*Bold*]