fix arithmetic subarithmetic parse
This commit is contained in:
parent
9a3086fc06
commit
a9e6b27ace
1 changed files with 1 additions and 0 deletions
|
|
@ -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 ()
|
else if(word_eq("$((", ctx)) // arithmetics in arithmetics: equivalent to ()
|
||||||
{
|
{
|
||||||
|
ctx.i += 3;
|
||||||
auto pa = parse_arithmetic(ctx);
|
auto pa = parse_arithmetic(ctx);
|
||||||
ret = new arithmetic_parenthesis_t(pa.first);
|
ret = new arithmetic_parenthesis_t(pa.first);
|
||||||
ctx = pa.second;
|
ctx = pa.second;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue