Refactor handling of whitespace.

This commit is contained in:
chriseth 2018-09-05 22:07:13 +02:00
parent 61ee88ff0e
commit 65a439b0fb

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();