diff --git a/compiler/parser.ts b/compiler/parser.ts index 98b5c66..a423b51 100644 --- a/compiler/parser.ts +++ b/compiler/parser.ts @@ -365,6 +365,7 @@ export class Parser { return []; } elems.push(elemRes.value); + i += 1; while (this.test(delimiter)) { this.step(); if (this.test(endToken)) { @@ -375,6 +376,7 @@ export class Parser { return []; } elems.push(elemRes.value); + i += 1; } if (!this.test(endToken)) { this.report(`expected '${endToken}'`);