Found little glitch in modern parser where a DOS CR+LF ending on a REM statement embedded the CR into the comment due to hard-coded "read to end of line" for REM handling.

This commit is contained in:
Rob Greene
2025-11-20 11:44:47 -06:00
parent ddb545daff
commit 99bea14272
@@ -111,7 +111,7 @@ public class ModernTokenReader {
while (true) {
// Bypass the Tokenizer and just read to EOL for the comment
int ch = reader.read();
if (ch == '\n') {
if (ch == '\n' || ch == '\r') {
// Recover to the newline so that the next token is a EOL
// This is needed for parsing!
this.needSyntheticEol = true;