summaryrefslogtreecommitdiff
path: root/tests/typ/text
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-05-24 16:58:51 +0200
committerLaurenz <laurmaedje@gmail.com>2023-05-24 16:58:51 +0200
commit017027bf392f7be2e73428fa34a3d1ef0b8d255e (patch)
tree55d862cc8c987c0b842ad063df653f97606f6d73 /tests/typ/text
parentb9d03be9755dae7f439763d181ec0c55a1e4c3d6 (diff)
Rework delimiter errors
Fixes #572
Diffstat (limited to 'tests/typ/text')
-rw-r--r--tests/typ/text/emphasis.typ8
-rw-r--r--tests/typ/text/escape.typ2
-rw-r--r--tests/typ/text/raw.typ2
3 files changed, 6 insertions, 6 deletions
diff --git a/tests/typ/text/emphasis.typ b/tests/typ/text/emphasis.typ
index 0191ac87..fd04c8e7 100644
--- a/tests/typ/text/emphasis.typ
+++ b/tests/typ/text/emphasis.typ
@@ -27,17 +27,17 @@ Normal
*Medium* and *#[*Bold*]*
---
-// Error: 13 expected underscore
+// Error: 6-7 unclosed delimiter
#box[_Scoped] to body.
---
// Ends at paragraph break.
-// Error: 7 expected underscore
+// Error: 1-2 unclosed delimiter
_Hello
World
---
-// Error: 26 expected star
-// Error: 26 expected underscore
+// Error: 11-12 unclosed delimiter
+// Error: 3-4 unclosed delimiter
#[_Cannot *be interleaved]
diff --git a/tests/typ/text/escape.typ b/tests/typ/text/escape.typ
index e7ec9023..8e557918 100644
--- a/tests/typ/text/escape.typ
+++ b/tests/typ/text/escape.typ
@@ -32,5 +32,5 @@ let f() , ; : | + - /= == 12 "string"
---
// Unterminated.
-// Error: 6 expected closing brace
+// Error: 1-6 unclosed unicode escape sequence
\u{41[*Bold*]
diff --git a/tests/typ/text/raw.typ b/tests/typ/text/raw.typ
index 1040151c..8cf5ee7e 100644
--- a/tests/typ/text/raw.typ
+++ b/tests/typ/text/raw.typ
@@ -55,5 +55,5 @@ The keyword ```rust let```.
---
// Unterminated.
-// Error: 2:1 expected 1 backtick
+// Error: 1-2:1 unclosed raw text
`endless