[TMP] Fix parsing for strings

This commit is contained in:
Kamil Śliwak 2022-06-02 18:50:58 +02:00
parent 7b06fba8fb
commit 4899b854d8

View File

@ -1960,7 +1960,11 @@ ASTPointer<Expression> Parser::parseLiteral()
case Token::TrueLiteral:
case Token::FalseLiteral:
case Token::Number:
{
nodeFactory.markEndPosition();
advance();
break;
}
case Token::StringLiteral:
case Token::UnicodeStringLiteral:
case Token::HexStringLiteral:
@ -1981,8 +1985,6 @@ ASTPointer<Expression> Parser::parseLiteral()
solAssert(false);
break;
}
nodeFactory.markEndPosition();
advance();
if (token == Token::Number && (
TokenTraits::isEtherSubdenomination(m_scanner->currentToken()) ||