We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca0599b commit 6622220Copy full SHA for 6622220
hscript/Parser.hx
@@ -481,15 +481,21 @@ class Parser {
481
case TBkOpen:
482
var a = [];
483
tk = token();
484
+ var first:Bool = true;
485
while( tk != TBkClose && (!resumeErrors || tk != TEof) ) {
486
+ if(!first) {
487
+ if(tk != TComma)
488
+ unexpected(tk);
489
+ else
490
+ tk = token();
491
+ }
492
+ first = false;
493
push(tk);
494
var oldoo = disableOrOp;
495
disableOrOp = false;
496
a.push(parseExpr());
497
disableOrOp = oldoo;
498
- if( tk == TComma )
- tk = token();
499
}
500
if( a.length == 1 && a[0] != null ) // What is this for???
501
switch( expr(a[0]) ) {
0 commit comments