From 961086dc5de486436027d669b32634a91575c4fa Mon Sep 17 00:00:00 2001 From: Noah Hellman Date: Fri, 27 Jan 2023 17:07:13 +0100 Subject: [PATCH] lex: rm unused percentage token --- src/lex.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/lex.rs b/src/lex.rs index b454c33..ef8f87b 100644 --- a/src/lex.rs +++ b/src/lex.rs @@ -44,7 +44,6 @@ pub enum Symbol { Caret, ExclaimBracket, Lt, - Percentage, Pipe, Plus, Quote1, @@ -226,7 +225,6 @@ impl + Clone> Lexer { self.eat_char(); Sym(ExclaimBracket) } - '%' => Sym(Percentage), '<' => Sym(Lt), '|' => Sym(Pipe), '\'' => Sym(Quote1), @@ -357,13 +355,12 @@ mod test { #[test] fn sym() { test_lex!( - r#"'*^![<%|+"~_"#, + r#"'*^![<|+"~_"#, Sym(Quote1).l(1), Sym(Asterisk).l(1), Sym(Caret).l(1), Sym(ExclaimBracket).l(2), Sym(Lt).l(1), - Sym(Percentage).l(1), Sym(Pipe).l(1), Sym(Plus).l(1), Sym(Quote2).l(1),