summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorastrale-sharp <ash4567@outlook.fr>2024-06-12 14:00:22 +0200
committerGitHub <noreply@github.com>2024-06-12 12:00:22 +0000
commitad4ef68a112dedabf80f885a02bcb574eb9af9e4 (patch)
treea5de8e9f9de8e4ac64efa4a30b343fe70fda9656 /tests
parent20b8d2c121c713cb32f6048df6435735a0c0262f (diff)
Lexer hint (#4346)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/suite/foundations/array.typ1
-rw-r--r--tests/suite/scripting/call.typ1
-rw-r--r--tests/suite/syntax/comment.typ1
3 files changed, 3 insertions, 0 deletions
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.