From ad4ef68a112dedabf80f885a02bcb574eb9af9e4 Mon Sep 17 00:00:00 2001 From: astrale-sharp Date: Wed, 12 Jun 2024 14:00:22 +0200 Subject: Lexer hint (#4346) Co-authored-by: Laurenz --- tests/suite/foundations/array.typ | 1 + tests/suite/scripting/call.typ | 1 + tests/suite/syntax/comment.typ | 1 + 3 files changed, 3 insertions(+) (limited to 'tests') diff --git a/tests/suite/foundations/array.typ b/tests/suite/foundations/array.typ index 1df83fc6..6228f471 100644 --- a/tests/suite/foundations/array.typ +++ b/tests/suite/foundations/array.typ @@ -22,6 +22,7 @@ --- array-bad-token --- // Error: 4-6 unexpected end of block comment +// Hint: 4-6 consider escaping the `*` with a backslash or opening the block comment with `/*` #(1*/2) --- array-bad-number-suffix --- diff --git a/tests/suite/scripting/call.typ b/tests/suite/scripting/call.typ index e79fc949..34344608 100644 --- a/tests/suite/scripting/call.typ +++ b/tests/suite/scripting/call.typ @@ -80,6 +80,7 @@ --- call-args-bad-token --- // Error: 10-12 unexpected end of block comment +// Hint: 10-12 consider escaping the `*` with a backslash or opening the block comment with `/*` #func(a:1*/) --- call-args-missing-comma --- diff --git a/tests/suite/syntax/comment.typ b/tests/suite/syntax/comment.typ index ac3e1943..5e7e0ee6 100644 --- a/tests/suite/syntax/comment.typ +++ b/tests/suite/syntax/comment.typ @@ -37,6 +37,7 @@ Second part --- comment-block-unclosed --- // End should not appear without start. // Error: 7-9 unexpected end of block comment +// Hint: 7-9 consider escaping the `*` with a backslash or opening the block comment with `/*` /* */ */ // Unterminated is okay. -- cgit v1.2.3