mirror of
https://github.com/cc65/cc65.git
synced 2025-02-08 11:31:34 +00:00
Removed the compiler's recovery code for illegal escaped characters.
It caused the error cascade that it was supposed to prevent.
This commit is contained in:
parent
199226d089
commit
a76dcdc419
@ -347,16 +347,8 @@ static int ParseChar (void)
|
|||||||
Error ("Octal character constant out of range");
|
Error ("Octal character constant out of range");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
Error ("Illegal character constant");
|
Error ("Illegal escaped character");
|
||||||
C = ' ';
|
C = CurC;
|
||||||
/* Try to do error recovery, otherwise the compiler will spit
|
|
||||||
** out thousands of errors in this place and abort.
|
|
||||||
*/
|
|
||||||
if (CurC != '\'' && CurC != '\0') {
|
|
||||||
while (NextC != '\'' && NextC != '\"' && NextC != '\0') {
|
|
||||||
NextChar ();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user