瀏覽代碼

fix: Fix a bug with expression in parenthesis

Add missing token stream position increment in expression with parenthesis parser
Lucas de Souza 2 年之前
父節點
當前提交
3f1b28f83c
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      js/ast/ivprogParser.js

+ 1 - 0
js/ast/ivprogParser.js

@@ -1520,6 +1520,7 @@ export class IVProgParser {
   parseParenthesisExp () {
     this.checkOpenParenthesis();
     const tokenA = this.getToken();
+    this.pos += 1;
     this.consumeNewLines();
     const exp = this.parseExpressionOR();
     this.consumeNewLines();