mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-28 13:57:48 +00:00
Fix incorrect lexing of "$ff00+c" (#882)
Fixes #881 by moving the task from the lexer to the parser. This both alleviates the need for backtracking in the lexer, removing what is (was) arguably a hack, and causes tokenization boundaries to be properly respected, fixing the issue mentioned above. Co-authored-by: Rangi <remy.oukaour+rangi42@gmail.com>
This commit is contained in:
11
test/asm/ff00+c-label.asm
Normal file
11
test/asm/ff00+c-label.asm
Normal file
@@ -0,0 +1,11 @@
|
||||
CONSTANT equ 42
|
||||
PRINTLN $ff00 + CONSTANT
|
||||
|
||||
SECTION "Overreading much?", ROM0[0]
|
||||
|
||||
jp $ff00 + CONSTANT
|
||||
jp $ff00 + carryOnPlease
|
||||
jp $ff00+CONSTANT
|
||||
jp $ff00+carryOnPlease
|
||||
|
||||
carryOnPlease:
|
||||
Reference in New Issue
Block a user