Added test and fixed skipping whitespace

This commit is contained in:
Aleksander
2015-01-03 14:57:34 +01:00
parent dd686a808d
commit 150ea237e9
2 changed files with 18 additions and 1 deletions
+1 -1
View File
@@ -792,7 +792,7 @@ static void nextToken(Parser* parser)
case '\t':
case ' ':
// Skip forward until we run out of whitespace.
while (peekChar(parser) == ' ') nextChar(parser);
while (peekChar(parser) == ' ' || peekChar(parser) == '\t') nextChar(parser);
break;
case '"': readString(parser); return;