From f98fe503a0da0a5ce3b40fadc701f05dd0bafae0 Mon Sep 17 00:00:00 2001 From: sater Date: Wed, 18 Jul 1984 11:04:58 +0000 Subject: [PATCH] Improved error handling on unterminated strings --- util/cgg/bootlex.l | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/cgg/bootlex.l b/util/cgg/bootlex.l index 9332c9a1..c283e079 100644 --- a/util/cgg/bootlex.l +++ b/util/cgg/bootlex.l @@ -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 '%':