mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-25 04:22:07 +00:00
Merge pull request #419 from dbrotz/fix-blackslash-tab-at-eof
Handle tabs after backslash at end of file
This commit is contained in:
7
test/asm/line-continuation-macro.asm
Normal file
7
test/asm/line-continuation-macro.asm
Normal file
@@ -0,0 +1,7 @@
|
||||
m: MACRO
|
||||
ENDM
|
||||
|
||||
m2: MACRO
|
||||
m \ ENDM
|
||||
|
||||
m2
|
||||
0
test/asm/line-continuation-macro.out
Normal file
0
test/asm/line-continuation-macro.out
Normal file
8
test/asm/line-continuation-rept.asm
Normal file
8
test/asm/line-continuation-rept.asm
Normal file
@@ -0,0 +1,8 @@
|
||||
m: MACRO
|
||||
ENDM
|
||||
|
||||
REPT 1
|
||||
m ENDR
|
||||
|
||||
REPT 1
|
||||
m \ ENDR
|
||||
0
test/asm/line-continuation-rept.out
Normal file
0
test/asm/line-continuation-rept.out
Normal file
7
test/asm/line-continuation-whitespace.asm
Normal file
7
test/asm/line-continuation-whitespace.asm
Normal file
@@ -0,0 +1,7 @@
|
||||
; Test that \ followed by whitespace after a macro invocation at the end of the
|
||||
; file doesn't cause a segfault.
|
||||
|
||||
bar: MACRO
|
||||
ENDM
|
||||
|
||||
foo bar baz\
|
||||
0
test/asm/line-continuation-whitespace.out
Normal file
0
test/asm/line-continuation-whitespace.out
Normal file
Reference in New Issue
Block a user