From 1bca9ccecb9edb583a0a94bd3611147b66909ab9 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Wed, 4 May 2022 23:26:15 +0200 Subject: Improve diagnostics --- tests/typ/code/import.typ | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'tests/typ/code/import.typ') diff --git a/tests/typ/code/import.typ b/tests/typ/code/import.typ index 312ee676..dab91dae 100644 --- a/tests/typ/code/import.typ +++ b/tests/typ/code/import.typ @@ -71,11 +71,11 @@ This is never reached. // Error: 8 expected keyword `from` #import -// Error: 9-19 expected identifier +// Error: 9-19 expected identifier, found string // Error: 19 expected keyword `from` #import "file.typ" -// Error: 16-19 expected identifier +// Error: 16-19 expected identifier, found string // Error: 22 expected keyword `from` #import afrom, "b", c @@ -108,7 +108,6 @@ This is never reached. // A star in the list. // Error: 12-13 expected expression, found star -// Error: 13-14 expected expression, found comma #import a, *, b from "target.typ" // An item after a star. @@ -117,5 +116,5 @@ This is never reached. #import *, a from "target.typ" --- -// Error: 9-13 expected identifier +// Error: 9-13 expected identifier, found named pair #import a: 1 from "" -- cgit v1.2.3