diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-11-29 13:37:25 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-11-29 14:18:13 +0100 |
| commit | 0efe669278a5e1c3f2985eba2f3360e91159c54a (patch) | |
| tree | 502712857c48f0decb5e698257c0a96d358a436e /tests/typ/compiler/comment.typ | |
| parent | 836692e73cff0356e409a9ba5b4887b86809d4ca (diff) | |
Reorganize library and tests
Diffstat (limited to 'tests/typ/compiler/comment.typ')
| -rw-r--r-- | tests/typ/compiler/comment.typ | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/typ/compiler/comment.typ b/tests/typ/compiler/comment.typ new file mode 100644 index 00000000..4a4dc7ab --- /dev/null +++ b/tests/typ/compiler/comment.typ @@ -0,0 +1,33 @@ +// Test line and block comments. + +--- +// Line comment acts as spacing. +A// you +B + +// Block comment does not act as spacing, nested block comments. +C/* + /* */ +*/D + +// Works in code. +#test(type(/*1*/ 1) // +, "integer") + +// End of block comment in line comment. +// Hello */ + +// Nested line comment. +/*//*/ +Still comment. +*/ + +E + +--- +// End should not appear without start. +// Error: 7-9 unexpected end of block comment +/* */ */ + +// Unterminated is okay. +/* |
