From 017027bf392f7be2e73428fa34a3d1ef0b8d255e Mon Sep 17 00:00:00 2001 From: Laurenz Date: Wed, 24 May 2023 16:58:51 +0200 Subject: Rework delimiter errors Fixes #572 --- tests/typ/text/emphasis.typ | 8 ++++---- tests/typ/text/escape.typ | 2 +- tests/typ/text/raw.typ | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/typ/text') 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 -- cgit v1.2.3