From af89541af1411ed12093391465b4dff5e9f60732 Mon Sep 17 00:00:00 2001 From: John Breaux Date: Wed, 31 Jan 2024 17:58:26 -0600 Subject: [PATCH] lexer: Fix copy+paste error in `greater`. Now emits `Rsh` tokens~! --- src/lexer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lexer.rs b/src/lexer.rs index 447f28a..c2a8edc 100644 --- a/src/lexer.rs +++ b/src/lexer.rs @@ -169,7 +169,7 @@ impl<'t> Lexer<'t> { } fn greater(&mut self) -> Option> { match self.peek() { - Some('>') => self.then().emit(TokenKind::Lsh), + Some('>') => self.then().emit(TokenKind::Rsh), _ => todo!("greater"), } }