summaryrefslogtreecommitdiff
path: root/tests/suite
diff options
context:
space:
mode:
authorYip Coekjan <69834864+Coekjan@users.noreply.github.com>2024-06-04 23:33:08 +0800
committerGitHub <noreply@github.com>2024-06-04 15:33:08 +0000
commitada0f5da65ef41ac8fa11111839437c76edd3c68 (patch)
tree5e258c0e146904ab78ed28ca393e6575b22671eb /tests/suite
parentdf6e347bc55bdcbf370645442290198c0bcdd3fe (diff)
Hint for labels in code mode (#4319)
Diffstat (limited to 'tests/suite')
-rw-r--r--tests/suite/foundations/label.typ6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/suite/foundations/label.typ b/tests/suite/foundations/label.typ
index 2cde102c..28c6383b 100644
--- a/tests/suite/foundations/label.typ
+++ b/tests/suite/foundations/label.typ
@@ -68,3 +68,9 @@ _Visible_
#test(str(<hey>), "hey")
#test(str(label("hey")), "hey")
#test(str([Hmm<hey>].label), "hey")
+
+--- label-in-code-mode-hint ---
+// Error: 7-7 expected semicolon or line break
+// Hint: 7-7 labels can only be applied in markup mode
+// Hint: 7-7 try wrapping your code in a markup block (`[ ]`)
+#{ [A] <a> }