diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-05-04 23:26:15 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-05-04 23:26:15 +0200 |
| commit | 1bca9ccecb9edb583a0a94bd3611147b66909ab9 (patch) | |
| tree | c9068332196eb754d65c6b51f124e39e91d3cd1a /tests/typ/code/import.typ | |
| parent | 2a45650dcc87c3bf047adaf030fd392bbe9fbb5e (diff) | |
Improve diagnostics
Diffstat (limited to 'tests/typ/code/import.typ')
| -rw-r--r-- | tests/typ/code/import.typ | 7 |
1 files changed, 3 insertions, 4 deletions
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 "" |
