[0.4.14][CMD] Quick fix for the REM command parser. CORE-17030

This avoids spamming Syntax Errors when starting the VS2010 command prompt.

Fix picked from 0.4.15-dev-202-g 9c11be5a3a
This commit is contained in:
Joachim Henze 2021-01-04 21:43:50 +01:00
parent 3461c592ab
commit e6a5af4315

View file

@ -575,9 +575,10 @@ error:
/* Parse a REM command */ /* Parse a REM command */
static PARSED_COMMAND *ParseRem(void) static PARSED_COMMAND *ParseRem(void)
{ {
/* Just ignore the rest of the line */ /* "Ignore" the rest of the line.
while (CurChar && CurChar != _T('\n')) * (Line continuations will still be parsed, though.) */
ParseChar(); while (ParseToken(0, NULL) != TOK_END)
;
return NULL; return NULL;
} }