blob: e03d73e5f4c46c77fff52657d2f3d854523d5ee3 (
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
37
38
39
|
// 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"
// Escaped dot.
10\. May
---
// Unicode codepoint does not exist.
// Error: 1-11 invalid unicode escape sequence
\u{FFFFFF}
---
// Unterminated.
// Error: 6 expected closing brace
\u{41[*Bold*]
|