Merge pull request #311 from guanqun/correct-boolean-literal-position

correct true/false literal's source
This commit is contained in:
chriseth 2015-12-18 17:14:57 +01:00
commit 6c6295b74e

View File

@ -1055,6 +1055,7 @@ ASTPointer<Expression> Parser::parsePrimaryExpression()
{
case Token::TrueLiteral:
case Token::FalseLiteral:
nodeFactory.markEndPosition();
expression = nodeFactory.createNode<Literal>(token, getLiteralAndAdvance());
break;
case Token::Number: