Support Mac OS classic CR line endings in linkerscripts

This also refactors `readChar(file)` to `nextChar()` to be
more like the rgbasm lexer.
This commit is contained in:
Rangi
2021-04-26 11:55:50 -04:00
committed by Rangi
parent e27a6d53a0
commit 43cf20b155
3 changed files with 26 additions and 29 deletions

View File

@@ -1,3 +1 @@
ROM0
"A\"B\tC\rD\nE"
"in\{valid"
; This uses CR line endings

View File

@@ -1 +1 @@
error: ./linkerscript-escapes-test.link(3): Illegal character escape
error: ./linkerscript-escapes-test.link(4): Illegal character escape