lexer: Fix copy+paste error in greater. Now emits Rsh tokens~!

This commit is contained in:
John 2024-01-31 17:58:26 -06:00
parent 6b5663ae4e
commit af89541af1

View File

@ -169,7 +169,7 @@ impl<'t> Lexer<'t> {
} }
fn greater(&mut self) -> Option<Token<'t>> { fn greater(&mut self) -> Option<Token<'t>> {
match self.peek() { match self.peek() {
Some('>') => self.then().emit(TokenKind::Lsh), Some('>') => self.then().emit(TokenKind::Rsh),
_ => todo!("greater"), _ => todo!("greater"),
} }
} }