Refactor handling of whitespace.

This commit is contained in:
chriseth 2018-09-05 22:07:13 +02:00
parent f19cddd59e
commit 977ac9c390

View File

@ -435,11 +435,6 @@ void Scanner::scanToken()
m_nextToken.location.start = sourcePos();
switch (m_char)
{
case '\n':
case ' ':
case '\t':
token = selectToken(Token::Whitespace);
break;
case '"':
case '\'':
token = scanString();