From 04579664fd453e8a5faf52ec0c444dad5051a1e2 Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Sun, 12 Jan 2020 22:43:39 -0600 Subject: [PATCH] update parse.c --- src/core/parse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/parse.c b/src/core/parse.c index 899950e3..90bcb8dc 100644 --- a/src/core/parse.c +++ b/src/core/parse.c @@ -796,6 +796,7 @@ static Janet cfun_parse_insert(int32_t argc, Janet *argv) { p->column--; s = p->states + p->statecount - 1; } + if (s->flags & PFLAG_COMMENT) s--; if (s->flags & PFLAG_CONTAINER) { s->argn++; if (p->statecount == 1) p->pending++;