summaryrefslogtreecommitdiff
path: root/tests/typ/markup/escape.typ
diff options
context:
space:
mode:
Diffstat (limited to 'tests/typ/markup/escape.typ')
-rw-r--r--tests/typ/markup/escape.typ30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/typ/markup/escape.typ b/tests/typ/markup/escape.typ
new file mode 100644
index 00000000..eeac4997
--- /dev/null
+++ b/tests/typ/markup/escape.typ
@@ -0,0 +1,30 @@
+// 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\}
+
+// Unicode codepoint does not exist.
+// Error: 1-11 invalid unicode escape sequence
+\u{FFFFFF}
+
+// Unterminated.
+// Error: 6 expected closing brace
+\u{41*Bold*