Преглед на файлове

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();