Improved error handling on unterminated strings
authorsater <none@none>
Wed, 18 Jul 1984 11:04:58 +0000 (11:04 +0000)
committersater <none@none>
Wed, 18 Jul 1984 11:04:58 +0000 (11:04 +0000)
util/cgg/bootlex.l

index 9332c9a..c283e07 100644 (file)
@@ -122,7 +122,8 @@ return                      return(RETURN);
                                         *p++=c; *p++=input(); break;
                                 case '\n':
                                         yyerror("Unterminated string");
-                                        break;
+                                       unput(c);
+                                       /* fall through */
                                 case '"':
                                         tipe=STRING; goto endstr;
                                 case '%':