summaryrefslogtreecommitdiff
path: root/tests/suite/syntax/comment.typ
diff options
context:
space:
mode:
Diffstat (limited to 'tests/suite/syntax/comment.typ')
-rw-r--r--tests/suite/syntax/comment.typ35
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/suite/syntax/comment.typ b/tests/suite/syntax/comment.typ
index 5e7e0ee6..88802fe9 100644
--- a/tests/suite/syntax/comment.typ
+++ b/tests/suite/syntax/comment.typ
@@ -34,6 +34,41 @@ Second part
First part //
Second part
+--- issue-4632-sth-followed-by-comment ---
+// Test heading markers followed by comments.
+#test([
+ =// Comment
+ =/* Comment */
+], [
+ =
+ =
+])
+
+// Test list markers followed by comments.
+#test([
+ -// Comment
+ -/* Comment */
+], [
+ -
+ -
+])
+
+// Test enum markers followed by comments.
+#test([
+ +// Comment
+ +/* Comment */
+
+ 1.// Comment
+ 2./* Comment */
+], [
+ +
+ +
+
+ 1.
+ 2.
+])
+
+
--- comment-block-unclosed ---
// End should not appear without start.
// Error: 7-9 unexpected end of block comment