mirror of
https://github.com/PaddiM8/kalker.git
synced 2025-01-31 17:09:13 +01:00
Lex '**' as power sign
This commit is contained in:
parent
4a46fe9fc7
commit
455db4f0f1
@ -119,6 +119,15 @@ impl<'a> Lexer<'a> {
|
||||
|
||||
self.advance();
|
||||
|
||||
// Handle **
|
||||
if let (TokenKind::Star, Some(c)) = (token.kind, self.peek()) {
|
||||
if *c == '*' {
|
||||
self.advance();
|
||||
|
||||
return build(TokenKind::Power, "", span);
|
||||
}
|
||||
}
|
||||
|
||||
token
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user