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