mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
parse.y: skip() should not ignore end-of-file; fix #55
This commit is contained in:
+5
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user