mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
@@ -686,6 +686,7 @@ line : plain_directive endofline
|
|||||||
| line_directive /* Directives that manage newlines themselves */
|
| line_directive /* Directives that manage newlines themselves */
|
||||||
| error endofline { /* Continue parsing the next line on a syntax error */
|
| error endofline { /* Continue parsing the next line on a syntax error */
|
||||||
fstk_StopRept();
|
fstk_StopRept();
|
||||||
|
yyerrok;
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
ERROR: label-macro-arg.asm(38) -> label-macro-arg.asm::test_char(25):
|
ERROR: label-macro-arg.asm(38) -> label-macro-arg.asm::test_char(25):
|
||||||
syntax error, unexpected =
|
syntax error, unexpected =
|
||||||
while expanding symbol "VAR_DEF"
|
while expanding symbol "VAR_DEF"
|
||||||
|
ERROR: label-macro-arg.asm(38) -> label-macro-arg.asm::test_char(26):
|
||||||
|
syntax error, unexpected =
|
||||||
ERROR: label-macro-arg.asm(38) -> label-macro-arg.asm::test_char(29):
|
ERROR: label-macro-arg.asm(38) -> label-macro-arg.asm::test_char(29):
|
||||||
Interpolated symbol "sizeof_.something" does not exist
|
Interpolated symbol "sizeof_.something" does not exist
|
||||||
ERROR: label-macro-arg.asm(39) -> label-macro-arg.asm::test_char(25):
|
ERROR: label-macro-arg.asm(39) -> label-macro-arg.asm::test_char(25):
|
||||||
@@ -16,4 +18,4 @@ ERROR: label-macro-arg.asm(39) -> label-macro-arg.asm::test_char(29):
|
|||||||
Invalid format spec 'sizeof_'
|
Invalid format spec 'sizeof_'
|
||||||
ERROR: label-macro-arg.asm(39) -> label-macro-arg.asm::test_char(29):
|
ERROR: label-macro-arg.asm(39) -> label-macro-arg.asm::test_char(29):
|
||||||
Interpolated symbol "something" does not exist
|
Interpolated symbol "something" does not exist
|
||||||
error: Assembly aborted (8 errors)!
|
error: Assembly aborted (9 errors)!
|
||||||
|
|||||||
10
test/asm/syntax-error-after-syntax-error.asm
Normal file
10
test/asm/syntax-error-after-syntax-error.asm
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
MACRO mac
|
||||||
|
println "got {d:_NARG} args"
|
||||||
|
ENDM
|
||||||
|
mac
|
||||||
|
mac 42
|
||||||
|
notmac
|
||||||
|
mac
|
||||||
|
mac 42
|
||||||
|
mac::
|
||||||
|
mac ::
|
||||||
11
test/asm/syntax-error-after-syntax-error.err
Normal file
11
test/asm/syntax-error-after-syntax-error.err
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
ERROR: syntax-error-after-syntax-error.asm(6):
|
||||||
|
syntax error, unexpected newline
|
||||||
|
ERROR: syntax-error-after-syntax-error.asm(7):
|
||||||
|
syntax error, unexpected newline
|
||||||
|
ERROR: syntax-error-after-syntax-error.asm(8):
|
||||||
|
syntax error, unexpected number
|
||||||
|
ERROR: syntax-error-after-syntax-error.asm(9):
|
||||||
|
'mac' already defined at syntax-error-after-syntax-error.asm(1)
|
||||||
|
ERROR: syntax-error-after-syntax-error.asm(10):
|
||||||
|
'mac' already defined at syntax-error-after-syntax-error.asm(1)
|
||||||
|
error: Assembly aborted (5 errors)!
|
||||||
2
test/asm/syntax-error-after-syntax-error.out
Normal file
2
test/asm/syntax-error-after-syntax-error.out
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
got 0 args
|
||||||
|
got 1 args
|
||||||
11
test/asm/syntax-error-after-syntax-error.simple.err
Normal file
11
test/asm/syntax-error-after-syntax-error.simple.err
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
ERROR: syntax-error-after-syntax-error.asm(6):
|
||||||
|
syntax error
|
||||||
|
ERROR: syntax-error-after-syntax-error.asm(7):
|
||||||
|
syntax error
|
||||||
|
ERROR: syntax-error-after-syntax-error.asm(8):
|
||||||
|
syntax error
|
||||||
|
ERROR: syntax-error-after-syntax-error.asm(9):
|
||||||
|
'mac' already defined at syntax-error-after-syntax-error.asm(1)
|
||||||
|
ERROR: syntax-error-after-syntax-error.asm(10):
|
||||||
|
'mac' already defined at syntax-error-after-syntax-error.asm(1)
|
||||||
|
error: Assembly aborted (5 errors)!
|
||||||
Reference in New Issue
Block a user