From 6459ad28e80a84bd6c873dd8140e7cacd758c295 Mon Sep 17 00:00:00 2001 From: greg Date: Thu, 7 Sep 2017 23:40:42 -0700 Subject: [PATCH] A few more keywords --- src/schala_lang/parsing.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/schala_lang/parsing.rs b/src/schala_lang/parsing.rs index d17c35f..14edb40 100644 --- a/src/schala_lang/parsing.rs +++ b/src/schala_lang/parsing.rs @@ -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,