aboutsummaryrefslogtreecommitdiffstats
path: root/Parser.cpp
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-02-05 20:48:02 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-02-05 22:41:13 +0800
commiteaadc71b4c88603a7264211401d249ca1ead22e3 (patch)
tree1d90d9d43d59472be6092e372d4d9d05ad1654d8 /Parser.cpp
parent426f9a286071714de61accd04a13ce9d2446ba30 (diff)
downloaddexon-solidity-eaadc71b4c88603a7264211401d249ca1ead22e3.tar
dexon-solidity-eaadc71b4c88603a7264211401d249ca1ead22e3.tar.gz
dexon-solidity-eaadc71b4c88603a7264211401d249ca1ead22e3.tar.bz2
dexon-solidity-eaadc71b4c88603a7264211401d249ca1ead22e3.tar.lz
dexon-solidity-eaadc71b4c88603a7264211401d249ca1ead22e3.tar.xz
dexon-solidity-eaadc71b4c88603a7264211401d249ca1ead22e3.tar.zst
dexon-solidity-eaadc71b4c88603a7264211401d249ca1ead22e3.zip
Tests and fixes for ether subdenominations
Diffstat (limited to 'Parser.cpp')
-rw-r--r--Parser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Parser.cpp b/Parser.cpp
index 6449ba93..741b9aba 100644
--- a/Parser.cpp
+++ b/Parser.cpp
@@ -694,10 +694,10 @@ ASTPointer<Expression> Parser::parsePrimaryExpression()
case Token::NUMBER:
nextToken = m_scanner->peekNextToken();
case Token::STRING_LITERAL:
- if (Token::isEtherSubdenomination(nextToken))
- m_scanner->next();
nodeFactory.markEndPosition();
expression = nodeFactory.createNode<Literal>(token, getLiteralAndAdvance(), nextToken);
+ if (Token::isEtherSubdenomination(nextToken))
+ m_scanner->next();
break;
case Token::IDENTIFIER:
nodeFactory.markEndPosition();