From: fennecdjay Date: Sun, 14 Aug 2022 18:58:24 +0000 (+0200) Subject: :art: improve scanner pos X-Git-Tag: nightly~264^2~40 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=05984e7abb24c42cc0a0b833f6fa4ea40db01d97;p=gwion.git :art: improve scanner pos --- diff --git a/ast b/ast index f28bf415..0572c7f6 160000 --- a/ast +++ b/ast @@ -1 +1 @@ -Subproject commit f28bf415a5e5a787ff357982a7efbf5b0d68de3b +Subproject commit 0572c7f619a0b3377efa07a77a3f3b369b2c6e39 diff --git a/src/parse/spread.c b/src/parse/spread.c index 8d2f10b5..6fd7c799 100644 --- a/src/parse/spread.c +++ b/src/parse/spread.c @@ -30,7 +30,7 @@ ANN m_bool spread_ast(const Env env, const Spread_Def spread, const Tmpl *tmpl) sprintf(c, "%s=%s%u", name, name, i); pparg_add(env->gwion->ppa, c); } - Ast ast = parse(&arg); + Ast ast = parse_pos(&arg, spread->pos); pparg_rem(env->gwion->ppa, s_name(spread->xid)); for(uint32_t j = 0; j < spread->list->len;j++) { const Symbol sym = *mp_vector_at(spread->list, Symbol, j);