summaryrefslogtreecommitdiff
path: root/tests/typ/code/comment.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-09-19 11:05:25 +0200
committerLaurenz <laurmaedje@gmail.com>2022-09-19 11:05:25 +0200
commite5f958b92161732ae46ccc66ce3d6eea213cf925 (patch)
tree9554daeeb4128eb25764066ee782ddabd7f66d18 /tests/typ/code/comment.typ
parenta2e25d2dadc1e3ef4a990b3fa4734044a4400efd (diff)
Handle line comments nested in block comments
Fixes #76
Diffstat (limited to 'tests/typ/code/comment.typ')
-rw-r--r--tests/typ/code/comment.typ12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/typ/code/comment.typ b/tests/typ/code/comment.typ
index 407bebd4..db0a17a4 100644
--- a/tests/typ/code/comment.typ
+++ b/tests/typ/code/comment.typ
@@ -5,7 +5,7 @@
A// you
B
-// Block comment does not act as spacing.
+// Block comment does not act as spacing, nested block comments.
C/*
/* */
*/D
@@ -14,6 +14,16 @@ C/*
#test(type(/*1*/ 1) //
, "integer")
+// End of block comment in line comment.
+// Hello */
+
+// Nested line comment.
+/*//*/
+Still comment.
+*/
+
+E
+
---
// Line comments have a special case for URLs.
https://example.com \