Fix a bunch of test TODOs.
- Added a bunch of tests. - Removed some TODOs for stuff that's already done. - Made list literals handle newlines better.
This commit is contained in:
@@ -1176,6 +1176,9 @@ static void list(Compiler* compiler, bool allowAssignment)
|
||||
{
|
||||
numElements++;
|
||||
expression(compiler);
|
||||
|
||||
// Ignore a newline after the element but before the ',' or ']'.
|
||||
match(compiler, TOKEN_LINE);
|
||||
} while (match(compiler, TOKEN_COMMA));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user