From 01c80000ed7fd0cf76419cd606d37e670659c892 Mon Sep 17 00:00:00 2001 From: sfja Date: Thu, 2 Jan 2025 15:57:04 +0100 Subject: [PATCH] fix param index increment --- compiler/parser.ts | 2 ++ 1 file changed, 2 insertions(+) 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}'`);