Improved error handling on unterminated strings
This commit is contained in:
parent
17a12c0bd7
commit
fc59a0d703
|
@ -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 '%':
|
||||
|
|
Loading…
Reference in a new issue