mirror of
https://github.com/TheM1Stery/izanami.git
synced 2025-04-20 00:41:11 +00:00
fix: fix scanning of GreaterEqual
This commit is contained in:
parent
4df4107b77
commit
3357899307
@ -84,7 +84,7 @@ impl Scanner {
|
|||||||
'=' => self.add_token(TokenType::Equal),
|
'=' => self.add_token(TokenType::Equal),
|
||||||
'<' if self.peek_and_match('=') => self.add_token(TokenType::LessEqual),
|
'<' if self.peek_and_match('=') => self.add_token(TokenType::LessEqual),
|
||||||
'<' => self.add_token(TokenType::Less),
|
'<' => self.add_token(TokenType::Less),
|
||||||
'>' if self.peek_and_match('>') => self.add_token(TokenType::GreaterEqual),
|
'>' if self.peek_and_match('=') => self.add_token(TokenType::GreaterEqual),
|
||||||
'>' => self.add_token(TokenType::Greater),
|
'>' => self.add_token(TokenType::Greater),
|
||||||
// checking for comments and just advance the iterator if it's a comment
|
// checking for comments and just advance the iterator if it's a comment
|
||||||
'/' if self.peek_and_match('/') => {
|
'/' if self.peek_and_match('/') => {
|
||||||
|
Loading…
Reference in New Issue
Block a user