aboutsummaryrefslogtreecommitdiffstats
path: root/Parser.cpp
diff options
context:
space:
mode:
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();