diff options
| author | Heinenen <37484430+Heinenen@users.noreply.github.com> | 2023-12-30 14:01:05 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-30 13:01:05 +0000 |
| commit | c27b9e2b0fad9fa3c68837ba12f0b32774daaf67 (patch) | |
| tree | fc8ce0fe1399d61370c3a42de415f2c415ebc907 /tests/typ | |
| parent | c4d9b0c3d8d2cf895137d2047e597fd3e24e0104 (diff) | |
Don't allow nested line comment inside block comment (#3048)
Diffstat (limited to 'tests/typ')
| -rw-r--r-- | tests/typ/compiler/comment.typ | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/typ/compiler/comment.typ b/tests/typ/compiler/comment.typ index fcab3352..31025de6 100644 --- a/tests/typ/compiler/comment.typ +++ b/tests/typ/compiler/comment.typ @@ -17,13 +17,14 @@ C/* // End of block comment in line comment. // Hello */ -// Nested line comment. -/*//*/ -Still comment. -*/ - +// Nested "//" doesn't count as line comment. +/* // */ E +/*//*/ +This is a comment. +*/*/ + --- // End should not appear without start. // Error: 7-9 unexpected end of block comment |
