Jelajahi Sumber

fix: Fix a bug with expression in parenthesis

Add missing token stream position increment in expression with parenthesis parser
Lucas de Souza 2 tahun lalu
induk
melakukan
3f1b28f83c
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  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();