From ec884ec1d85f6e1d7868db3e82d572579cc5d345 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Wed, 5 Oct 2022 12:49:39 +0200 Subject: Refactor syntax module --- tests/typ/code/array.typ | 4 ++-- tests/typ/code/block.typ | 2 +- tests/typ/code/call.typ | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/typ/code') diff --git a/tests/typ/code/array.typ b/tests/typ/code/array.typ index 1fa4d13c..cb8433cb 100644 --- a/tests/typ/code/array.typ +++ b/tests/typ/code/array.typ @@ -76,10 +76,10 @@ {)} // Error: 4 expected comma -// Error: 4-6 expected expression, found end of block comment +// Error: 4-6 unexpected end of block comment {(1*/2)} -// Error: 6-8 expected expression, found invalid token +// Error: 6-8 invalid number suffix {(1, 1u 2)} // Error: 3-4 expected expression, found comma diff --git a/tests/typ/code/block.typ b/tests/typ/code/block.typ index 194cde7a..d82d497f 100644 --- a/tests/typ/code/block.typ +++ b/tests/typ/code/block.typ @@ -112,7 +112,7 @@ --- // Multiple unseparated expressions in one line. -// Error: 2-4 expected expression, found invalid token +// Error: 2-4 invalid number suffix {1u} // Should output `1`. diff --git a/tests/typ/code/call.typ b/tests/typ/code/call.typ index 5a3f45f9..dc582c9c 100644 --- a/tests/typ/code/call.typ +++ b/tests/typ/code/call.typ @@ -73,7 +73,7 @@ // Error: 7-8 expected expression, found colon #func(:) -// Error: 10-12 expected expression, found end of block comment +// Error: 10-12 unexpected end of block comment #func(a:1*/) // Error: 8 expected comma -- cgit v1.2.3