1
0
mirror of https://github.com/janet-lang/janet synced 2025-01-27 15:44:45 +00:00

update parse.c

This commit is contained in:
Calvin Rose 2020-01-12 22:43:39 -06:00
parent f709d7eb40
commit 04579664fd

View File

@ -796,6 +796,7 @@ static Janet cfun_parse_insert(int32_t argc, Janet *argv) {
p->column--; p->column--;
s = p->states + p->statecount - 1; s = p->states + p->statecount - 1;
} }
if (s->flags & PFLAG_COMMENT) s--;
if (s->flags & PFLAG_CONTAINER) { if (s->flags & PFLAG_CONTAINER) {
s->argn++; s->argn++;
if (p->statecount == 1) p->pending++; if (p->statecount == 1) p->pending++;