]> git.sur5r.net Git - cc65/commitdiff
Fix bug #182
authorJT <jeremiah.turner@gmail.com>
Mon, 20 Jul 2015 22:55:25 +0000 (18:55 -0400)
committerJT <jeremiah.turner@gmail.com>
Mon, 20 Jul 2015 22:55:25 +0000 (18:55 -0400)
src/ca65/scanner.c

index 20053e7e6a332f0939d731226210c1c4442bfe44..9df28a8af61b00405be5b804d9e5b9a019f0328b 100644 (file)
@@ -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;