mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Refactor handling of whitespace.
This commit is contained in:
parent
f19cddd59e
commit
977ac9c390
@ -435,11 +435,6 @@ void Scanner::scanToken()
|
|||||||
m_nextToken.location.start = sourcePos();
|
m_nextToken.location.start = sourcePos();
|
||||||
switch (m_char)
|
switch (m_char)
|
||||||
{
|
{
|
||||||
case '\n':
|
|
||||||
case ' ':
|
|
||||||
case '\t':
|
|
||||||
token = selectToken(Token::Whitespace);
|
|
||||||
break;
|
|
||||||
case '"':
|
case '"':
|
||||||
case '\'':
|
case '\'':
|
||||||
token = scanString();
|
token = scanString();
|
||||||
|
Loading…
Reference in New Issue
Block a user