token: reserve "and", "or", "in" as keywords
This commit is contained in:
@@ -56,6 +56,7 @@ impl std::fmt::Display for Lexeme {
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
||||
pub enum TKind {
|
||||
Comment,
|
||||
And,
|
||||
As,
|
||||
Break,
|
||||
Const,
|
||||
@@ -65,11 +66,13 @@ pub enum TKind {
|
||||
Fn,
|
||||
For,
|
||||
If,
|
||||
In,
|
||||
Let,
|
||||
Loop,
|
||||
Macro,
|
||||
Match,
|
||||
Module,
|
||||
Or,
|
||||
Public,
|
||||
Return,
|
||||
Struct,
|
||||
|
||||
Reference in New Issue
Block a user