From c3d083fe334d59ae18b874c626881477551d0c5d Mon Sep 17 00:00:00 2001 From: JT Date: Mon, 20 Jul 2015 18:55:25 -0400 Subject: [PATCH] Fix bug #182 --- src/ca65/scanner.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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; -- 2.39.5