From: sater Date: Wed, 18 Jul 1984 11:04:58 +0000 (+0000) Subject: Improved error handling on unterminated strings X-Git-Tag: release-5-5~6187 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=fc59a0d703d994b118858329ad7bc95e89688630;p=ack.git Improved error handling on unterminated strings --- diff --git a/util/cgg/bootlex.l b/util/cgg/bootlex.l index 9332c9a14..c283e0797 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 '%':