fix arithmetic subarithmetic parse

This commit is contained in:
zawwz 2021-11-05 10:48:16 +01:00
parent 9a3086fc06
commit a9e6b27ace

View file

@ -297,6 +297,7 @@ std::pair<arithmetic_t*, parse_context> parse_arithmetic(parse_context ctx)
}
else if(word_eq("$((", ctx)) // arithmetics in arithmetics: equivalent to ()
{
ctx.i += 3;
auto pa = parse_arithmetic(ctx);
ret = new arithmetic_parenthesis_t(pa.first);
ctx = pa.second;