1
0
mirror of https://github.com/cc65/cc65.git synced 2025-02-26 07:29:25 +00:00

Merge pull request #183 from Movax12/linecont-bug

Fix bug #182
This commit is contained in:
Oliver Schmidt 2015-07-25 17:52:49 +02:00
commit af5d097920

View File

@ -1418,11 +1418,14 @@ CharAgain:
/* Line continuation? */ /* Line continuation? */
if (LineCont) { if (LineCont) {
NextChar (); NextChar ();
/* Next char should be a LF, if not, will result in an error later */
if (C == '\n') { if (C == '\n') {
/* Handle as white space */ /* Ignore the '\n' */
NextChar (); NextChar ();
C = ' ';
goto Again; goto Again;
} else {
/* Make it clear what the problem is: */
Error ("EOL expected.");
} }
} }
break; break;