From a9e6b27ace638f96e1816f3c4c694a47f6fc55a0 Mon Sep 17 00:00:00 2001 From: zawwz Date: Fri, 5 Nov 2021 10:48:16 +0100 Subject: [PATCH] fix arithmetic subarithmetic parse --- src/parse.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/parse.cpp b/src/parse.cpp index b7b810f..6e3f998 100644 --- a/src/parse.cpp +++ b/src/parse.cpp @@ -297,6 +297,7 @@ std::pair 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;