diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-01-13 17:22:33 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-01-13 17:22:33 +0100 |
| commit | c36a136e6f26ac99e58465ad072c282fe6dbaedf (patch) | |
| tree | d2c21e28033a4af68460e0159203274cb03e074a /tests/typ/escaping.typ | |
| parent | 2aa4c5bfc6e35ca663aa77899975450e6a4a26de (diff) | |
Simpler diagnostic localization in tests ♻
Diffstat (limited to 'tests/typ/escaping.typ')
| -rw-r--r-- | tests/typ/escaping.typ | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/tests/typ/escaping.typ b/tests/typ/escaping.typ index a562dcc0..cb663612 100644 --- a/tests/typ/escaping.typ +++ b/tests/typ/escaping.typ @@ -1,6 +1,4 @@ -// Test basic symbol escapes. - -// Escapable +// Escapable symbols. \\ \/ \[ \] \{ \} \* \_ \# \~ \` \$ // No need to escape. @@ -12,21 +10,16 @@ // Escaped comments. \// \/\* \*\/ -\/* \*/ - ---- -// Test unicode escapes. -// -// error: 5:1-5:11 invalid unicode escape sequence -// error: 8:6-8:6 expected closing brace +\/* \*/ * +// Test unicode escape sequence. \u{1F3D5} == 🏕 -// Bad sequence. +// Escaped escape sequence. +\u{41} vs. \\u\{41\} + +// Error: 1:1-1:11 invalid unicode escape sequence \u{FFFFFF} -// Missing closing brace. +// Error: 1:6-1:6 expected closing brace \u{41*Bold* - -// Escaped escape sequence. -\\u\{ABC\} |
