lex: rm unused percentage token
This commit is contained in:
parent
bc787a1553
commit
961086dc5d
1 changed files with 1 additions and 4 deletions
|
@ -44,7 +44,6 @@ pub enum Symbol {
|
|||
Caret,
|
||||
ExclaimBracket,
|
||||
Lt,
|
||||
Percentage,
|
||||
Pipe,
|
||||
Plus,
|
||||
Quote1,
|
||||
|
@ -226,7 +225,6 @@ impl<I: Iterator<Item = char> + Clone> Lexer<I> {
|
|||
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),
|
||||
|
|
Loading…
Reference in a new issue