lex: rm unused gt token
This commit is contained in:
		
					parent
					
						
							
								bdf35ca7d1
							
						
					
				
			
			
				commit
				
					
						bc787a1553
					
				
			
		
					 1 changed files with 1 additions and 4 deletions
				
			
		| 
						 | 
					@ -43,7 +43,6 @@ pub enum Symbol {
 | 
				
			||||||
    Asterisk,
 | 
					    Asterisk,
 | 
				
			||||||
    Caret,
 | 
					    Caret,
 | 
				
			||||||
    ExclaimBracket,
 | 
					    ExclaimBracket,
 | 
				
			||||||
    Gt,
 | 
					 | 
				
			||||||
    Lt,
 | 
					    Lt,
 | 
				
			||||||
    Percentage,
 | 
					    Percentage,
 | 
				
			||||||
    Pipe,
 | 
					    Pipe,
 | 
				
			||||||
| 
						 | 
					@ -229,7 +228,6 @@ impl<I: Iterator<Item = char> + Clone> Lexer<I> {
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            '%' => Sym(Percentage),
 | 
					            '%' => Sym(Percentage),
 | 
				
			||||||
            '<' => Sym(Lt),
 | 
					            '<' => Sym(Lt),
 | 
				
			||||||
            '>' => Sym(Gt),
 | 
					 | 
				
			||||||
            '|' => Sym(Pipe),
 | 
					            '|' => Sym(Pipe),
 | 
				
			||||||
            '\'' => Sym(Quote1),
 | 
					            '\'' => Sym(Quote1),
 | 
				
			||||||
            '"' => Sym(Quote2),
 | 
					            '"' => Sym(Quote2),
 | 
				
			||||||
| 
						 | 
					@ -359,12 +357,11 @@ mod test {
 | 
				
			||||||
    #[test]
 | 
					    #[test]
 | 
				
			||||||
    fn sym() {
 | 
					    fn sym() {
 | 
				
			||||||
        test_lex!(
 | 
					        test_lex!(
 | 
				
			||||||
            r#"'*^![><%|+"~_"#,
 | 
					            r#"'*^![<%|+"~_"#,
 | 
				
			||||||
            Sym(Quote1).l(1),
 | 
					            Sym(Quote1).l(1),
 | 
				
			||||||
            Sym(Asterisk).l(1),
 | 
					            Sym(Asterisk).l(1),
 | 
				
			||||||
            Sym(Caret).l(1),
 | 
					            Sym(Caret).l(1),
 | 
				
			||||||
            Sym(ExclaimBracket).l(2),
 | 
					            Sym(ExclaimBracket).l(2),
 | 
				
			||||||
            Sym(Gt).l(1),
 | 
					 | 
				
			||||||
            Sym(Lt).l(1),
 | 
					            Sym(Lt).l(1),
 | 
				
			||||||
            Sym(Percentage).l(1),
 | 
					            Sym(Percentage).l(1),
 | 
				
			||||||
            Sym(Pipe).l(1),
 | 
					            Sym(Pipe).l(1),
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue