parse.y: skip() should not ignore end-of-file; fix #55

This commit is contained in:
Yukihiro Matsumoto
2012-04-26 09:05:02 +09:00
parent 0486c48b1a
commit 5aa1c95710
+5 -2
View File
@@ -3038,8 +3038,11 @@ skip(parser_state *p, char term)
{
int c;
while ((c = nextc(p)) != term)
;
for (;;) {
c = nextc(p);
if (c < 0) break;
if (c == term) break;
}
}
static int