diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-01-20 14:05:17 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-01-20 14:05:35 +0100 |
| commit | dd331f007cb9c9968605f8d3eaef8fb498c21322 (patch) | |
| tree | f1b1490758ec53fd204724a325158d16c980d131 /tests/typ/compiler/import.typ | |
| parent | 40561e57fbbc68becac07acd54a34f94f591f277 (diff) | |
Rewrite parser
Diffstat (limited to 'tests/typ/compiler/import.typ')
| -rw-r--r-- | tests/typ/compiler/import.typ | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/typ/compiler/import.typ b/tests/typ/compiler/import.typ index 6f2ac459..6b2d8075 100644 --- a/tests/typ/compiler/import.typ +++ b/tests/typ/compiler/import.typ @@ -81,21 +81,16 @@ This is never reached. #import --- -// Error: 26-29 expected identifier, found string +// Error: 26-29 unexpected string #import "module.typ": a, "b", c --- -// Error: 22 expected import items -#import "module.typ": - ---- -// Error: 23-24 expected expression, found assignment operator -// Error: 24 expected import items +// Error: 23-24 unexpected equals sign #import "module.typ": = --- // An additional trailing comma. -// Error: 31-32 expected expression, found comma +// Error: 31-32 unexpected comma #import "module.typ": a, b, c,, --- @@ -105,7 +100,7 @@ This is never reached. --- // A star in the list. -// Error: 26-27 expected expression, found star +// Error: 26-27 unexpected star #import "module.typ": a, *, b --- @@ -114,5 +109,10 @@ This is never reached. #import "module.typ": *, a --- -// Error: 13-17 expected identifier, found named pair +// Error: 14-15 unexpected colon +// Error: 16-17 unexpected integer #import "": a: 1 + +--- +// Error: 14 expected comma +#import "": a b |
