aboutsummaryrefslogtreecommitdiffstats
path: root/Scanner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Scanner.cpp')
-rw-r--r--Scanner.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/Scanner.cpp b/Scanner.cpp
index fc4bdb6b..fbe3ea97 100644
--- a/Scanner.cpp
+++ b/Scanner.cpp
@@ -465,8 +465,14 @@ void Scanner::scanToken()
token = Token::Sub;
break;
case '*':
- // * *=
- token = selectToken('=', Token::AssignMul, Token::Mul);
+ // * ** *=
+ advance();
+ if (m_char == '*')
+ token = selectToken(Token::Exp);
+ else if (m_char == '=')
+ token = selectToken(Token::AssignMul);
+ else
+ token = Token::Mul;
break;
case '%':
// % %=