summaryrefslogtreecommitdiff
path: root/tests/typ/comments.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-01-13 15:44:41 +0100
committerLaurenz <laurmaedje@gmail.com>2021-01-13 15:44:41 +0100
commit1d01b93f679bccf8f228616bcf0f0ebcdee64d98 (patch)
tree3fa476cf5f783fcbb22614e0b7b53cb25a398b91 /tests/typ/comments.typ
parent60154474ba1cf4a556bbed7f80ee0947c29dbca8 (diff)
Move comment tests to integration 🚚
Diffstat (limited to 'tests/typ/comments.typ')
-rw-r--r--tests/typ/comments.typ23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/typ/comments.typ b/tests/typ/comments.typ
new file mode 100644
index 00000000..0dfb4b8e
--- /dev/null
+++ b/tests/typ/comments.typ
@@ -0,0 +1,23 @@
+// Test interaction with words, spacing and expressions.
+
+A// you
+B
+
+C/*
+ /* */
+*/D
+
+[dump /*1*/ a: "b" //
+, 1]
+
+---
+// Test error.
+//
+// ref: false
+// error: 3:7-3:9 unexpected end of block comment
+
+// No start of block comment.
+/* */ */
+
+// Unterminated block comment is okay.
+/*