fix loop on unterminated triple quotes
This commit is contained in:
parent
62e376b164
commit
78c0535a22
|
@ -257,7 +257,12 @@ tok_nextc(tok)
|
|||
}
|
||||
else {
|
||||
cur = tok->cur - tok->buf;
|
||||
tok->done = E_OK;
|
||||
if (feof(tok->fp)) {
|
||||
tok->done = E_EOF;
|
||||
done = 1;
|
||||
}
|
||||
else
|
||||
tok->done = E_OK;
|
||||
}
|
||||
tok->lineno++;
|
||||
/* Read until '\n' or EOF */
|
||||
|
|
Loading…
Reference in New Issue