From f85e5aac64784deac75950a1307f2ca802ad6765 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Thu, 8 Jul 2021 19:37:38 +0200 Subject: URL special case for line comments --- tests/ref/code/comment.png | Bin 708 -> 1904 bytes tests/typ/code/comment.typ | 5 +++++ 2 files changed, 5 insertions(+) (limited to 'tests') diff --git a/tests/ref/code/comment.png b/tests/ref/code/comment.png index 6654e125..bb8bf69a 100644 Binary files a/tests/ref/code/comment.png and b/tests/ref/code/comment.png differ diff --git a/tests/typ/code/comment.typ b/tests/typ/code/comment.typ index 25180211..694600d6 100644 --- a/tests/typ/code/comment.typ +++ b/tests/typ/code/comment.typ @@ -14,6 +14,11 @@ C/* #test(type(/*1*/ 1) // , "integer") +--- +// Line comments have a special case for URLs. +https://example.com \ +https:/* block comments don't ... */ + --- // End should not appear without start. // Error: 1:7-1:9 unexpected end of block comment -- cgit v1.2.3