Improved error handling on unterminated strings

This commit is contained in:
sater 1984-07-18 11:04:58 +00:00
parent 17a12c0bd7
commit fc59a0d703

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