Improved error handling on unterminated strings

This commit is contained in:
sater 1984-07-18 11:04:58 +00:00
parent 4410480e32
commit f98fe503a0

View 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 '%':