diff --git a/SMILEBASIC/parser.d b/SMILEBASIC/parser.d index c0fafc3..3227e9e 100644 --- a/SMILEBASIC/parser.d +++ b/SMILEBASIC/parser.d @@ -951,6 +951,8 @@ class Parser func.addArg(new VoidExpression(lex.location)); lex.popFront(); token = lex.front(); + if (token.type != TokenType.Comma) + func.addArg(new VoidExpression(lex.location)); } else {