A few more keywords
This commit is contained in:
parent
5e0c7e5a95
commit
6459ad28e8
@ -34,8 +34,9 @@ pub enum Kw {
|
|||||||
If, Else,
|
If, Else,
|
||||||
Func,
|
Func,
|
||||||
For,
|
For,
|
||||||
Var, Const, Let,
|
Match,
|
||||||
Type, SelfType, SelfIdent,
|
Var, Const, Let, In,
|
||||||
|
Alias, Type, SelfType, SelfIdent,
|
||||||
Trait, Impl,
|
Trait, Impl,
|
||||||
True, False
|
True, False
|
||||||
}
|
}
|
||||||
@ -47,9 +48,12 @@ lazy_static! {
|
|||||||
"else" => Kw::Else,
|
"else" => Kw::Else,
|
||||||
"fn" => Kw::Func,
|
"fn" => Kw::Func,
|
||||||
"for" => Kw::For,
|
"for" => Kw::For,
|
||||||
|
"match" => Kw::Match,
|
||||||
"var" => Kw::Var,
|
"var" => Kw::Var,
|
||||||
"const" => Kw::Const,
|
"const" => Kw::Const,
|
||||||
"let" => Kw::Let,
|
"let" => Kw::Let,
|
||||||
|
"in" => Kw::In,
|
||||||
|
"alias" => Kw::Alias,
|
||||||
"type" => Kw::Type,
|
"type" => Kw::Type,
|
||||||
"Self" => Kw::SelfType,
|
"Self" => Kw::SelfType,
|
||||||
"self" => Kw::SelfIdent,
|
"self" => Kw::SelfIdent,
|
||||||
|
Loading…
Reference in New Issue
Block a user