Merge pull request #977 from guanqun/simplify-with-selecttoken

simplify two statements with selectToken()
This commit is contained in:
chriseth 2015-02-09 00:10:50 +01:00
commit 5c58aa041d

View File

@ -458,10 +458,7 @@ void Scanner::scanToken()
// - -- -=
advance();
if (m_char == '-')
{
advance();
token = Token::DEC;
}
token = selectToken(Token::DEC);
else if (m_char == '=')
token = selectToken(Token::ASSIGN_SUB);
else