Add test case for block comments after line continuations

This commit is contained in:
Rangi42
2025-07-25 07:47:19 -04:00
parent d6a28a6259
commit 87c10988ed
3 changed files with 37 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
println 2 / 2
println 6 / \ ; comment
3
println 6 \ / ; comment
2
println 8 / /* hello
world */ 2
println 10 \ / 2
println 12 \ / /* hello
world */ 2
println 14 / \ /* hello
world */ 2

View File

@@ -0,0 +1,13 @@
error: line-continuation-block-comment.asm(6):
Invalid character after line continuation '/'
error: line-continuation-block-comment.asm(6):
syntax error, unexpected end of line
error: line-continuation-block-comment.asm(7):
syntax error, unexpected number
error: line-continuation-block-comment.asm(12):
Invalid character after line continuation '/'
error: line-continuation-block-comment.asm(14):
Invalid character after line continuation '/'
error: line-continuation-block-comment.asm(17):
Invalid character after line continuation '/'
Assembly aborted with 6 errors!

View File

@@ -0,0 +1,6 @@
$1
$2
$4
$5
$6
$7