From e5f958b92161732ae46ccc66ce3d6eea213cf925 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 19 Sep 2022 11:05:25 +0200 Subject: Handle line comments nested in block comments Fixes #76 --- tests/typ/code/comment.typ | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'tests/typ/code/comment.typ') 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 \ -- cgit v1.2.3