diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-09-19 11:05:25 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-09-19 11:05:25 +0200 |
| commit | e5f958b92161732ae46ccc66ce3d6eea213cf925 (patch) | |
| tree | 9554daeeb4128eb25764066ee782ddabd7f66d18 /tests | |
| parent | a2e25d2dadc1e3ef4a990b3fa4734044a4400efd (diff) | |
Handle line comments nested in block comments
Fixes #76
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/code/comment.png | bin | 2585 -> 2648 bytes | |||
| -rw-r--r-- | tests/typ/code/comment.typ | 12 |
2 files changed, 11 insertions, 1 deletions
diff --git a/tests/ref/code/comment.png b/tests/ref/code/comment.png Binary files differindex d7b59976..b1c630a9 100644 --- a/tests/ref/code/comment.png +++ b/tests/ref/code/comment.png 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 \ |
