token: Remove and and or tokens, since they clash with operator overload function names
				
					
				
			This commit is contained in:
		@@ -289,7 +289,6 @@ impl<'t> Lexer<'t> {
 | 
			
		||||
        let token = self.produce(TKind::Identifier);
 | 
			
		||||
        Ok(Token {
 | 
			
		||||
            kind: match lexeme {
 | 
			
		||||
                "and" => TKind::And,
 | 
			
		||||
                "as" => TKind::As,
 | 
			
		||||
                "break" => TKind::Break,
 | 
			
		||||
                "const" => TKind::Const,
 | 
			
		||||
@@ -308,7 +307,6 @@ impl<'t> Lexer<'t> {
 | 
			
		||||
                "match" => TKind::Match,
 | 
			
		||||
                "mod" => TKind::Module,
 | 
			
		||||
                "mut" => TKind::Mut,
 | 
			
		||||
                "or" => TKind::Or,
 | 
			
		||||
                "pub" => TKind::Public,
 | 
			
		||||
                "return" => TKind::Return,
 | 
			
		||||
                "static" => TKind::Static,
 | 
			
		||||
 
 | 
			
		||||
@@ -64,7 +64,6 @@ pub enum TKind {
 | 
			
		||||
    Comment, // Line or block comment
 | 
			
		||||
    Doc,     // Doc comment
 | 
			
		||||
 | 
			
		||||
    And,
 | 
			
		||||
    As,
 | 
			
		||||
    Break,
 | 
			
		||||
    Const,
 | 
			
		||||
@@ -83,7 +82,6 @@ pub enum TKind {
 | 
			
		||||
    Match,
 | 
			
		||||
    Module,
 | 
			
		||||
    Mut,
 | 
			
		||||
    Or,
 | 
			
		||||
    Public,
 | 
			
		||||
    Return,
 | 
			
		||||
    Static,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user