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:
Bob Nystrom
2013-12-20 12:42:11 -08:00
parent 315ed1c425
commit f2b036420d
12 changed files with 54 additions and 15 deletions
+3
View File
@@ -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));
}