Allow trailing comma in function call argument list

This commit is contained in:
K. Lange 2021-04-27 16:08:44 +09:00
parent b233ba47c7
commit 5f3effed53

View File

@ -3143,6 +3143,7 @@ static void call(int exprType) {
KrkScanner scannerBefore = krk_tellScanner();
Parser parserBefore = parser;
do {
if (check(TOKEN_RIGHT_PAREN)) break;
if (match(TOKEN_ASTERISK) || check(TOKEN_POW)) {
specialArgs++;
if (match(TOKEN_POW)) {