mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-30 14:57:50 +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:
5
test/asm/ff00+c-bad.err
Normal file
5
test/asm/ff00+c-bad.err
Normal file
@@ -0,0 +1,5 @@
|
||||
ERROR: ff00+c-bad.asm(8):
|
||||
Expected constant expression equal to $FF00 for "$ff00+c"
|
||||
ERROR: ff00+c-bad.asm(9):
|
||||
Expected constant expression equal to $FF00 for "$ff00+c"
|
||||
error: Assembly aborted (2 errors)!
|
||||
Reference in New Issue
Block a user