mirror of
https://github.com/AppleCommander/bastools.git
synced 2026-04-24 04:21:03 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user