Commit 5aa1c957 authored by Yukihiro Matsumoto's avatar Yukihiro Matsumoto

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

parent 0486c48b
...@@ -3038,8 +3038,11 @@ skip(parser_state *p, char term) ...@@ -3038,8 +3038,11 @@ skip(parser_state *p, char term)
{ {
int c; int c;
while ((c = nextc(p)) != term) for (;;) {
; c = nextc(p);
if (c < 0) break;
if (c == term) break;
}
} }
static int static int
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment