From: JT Date: Mon, 20 Jul 2015 22:55:25 +0000 (-0400) Subject: Fix bug #182 X-Git-Tag: V2.16~243^2~2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c3d083fe334d59ae18b874c626881477551d0c5d;p=cc65 Fix bug #182 --- diff --git a/src/ca65/scanner.c b/src/ca65/scanner.c index 20053e7e6..9df28a8af 100644 --- a/src/ca65/scanner.c +++ b/src/ca65/scanner.c @@ -1417,13 +1417,17 @@ CharAgain: case '\\': /* Line continuation? */ if (LineCont) { - NextChar (); + NextChar(); + /* Next char should be a LF, if not, will result in an error later */ if (C == '\n') { - /* Handle as white space */ - NextChar (); - C = ' '; + /* Ignore the '\n' */ + NextChar(); goto Again; } + else { + /* Make it clear what the problem is: */ + Error("EOL expected."); + } } break;