A few more keywords

This commit is contained in:
greg 2017-09-07 23:40:42 -07:00
parent 5e0c7e5a95
commit 6459ad28e8
1 changed files with 6 additions and 2 deletions

View File

@ -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,