Accept trailing comma in set literal
This commit is contained in:
parent
ed81bc9c03
commit
3472fcfb6b
@ -3251,7 +3251,7 @@ static void dict(int exprType) {
|
||||
if (check(TOKEN_COMMA) || check(TOKEN_RIGHT_BRACE)) {
|
||||
/* One expression, must be a set literal. */
|
||||
size_t argCount = 1;
|
||||
while (match(TOKEN_COMMA)) {
|
||||
while (match(TOKEN_COMMA) && !check(TOKEN_RIGHT_BRACE)) {
|
||||
expression();
|
||||
argCount++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user