mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #311 from guanqun/correct-boolean-literal-position
correct true/false literal's source
This commit is contained in:
commit
6c6295b74e
@ -1055,6 +1055,7 @@ ASTPointer<Expression> Parser::parsePrimaryExpression()
|
|||||||
{
|
{
|
||||||
case Token::TrueLiteral:
|
case Token::TrueLiteral:
|
||||||
case Token::FalseLiteral:
|
case Token::FalseLiteral:
|
||||||
|
nodeFactory.markEndPosition();
|
||||||
expression = nodeFactory.createNode<Literal>(token, getLiteralAndAdvance());
|
expression = nodeFactory.createNode<Literal>(token, getLiteralAndAdvance());
|
||||||
break;
|
break;
|
||||||
case Token::Number:
|
case Token::Number:
|
||||||
|
Loading…
Reference in New Issue
Block a user