Reserve return keyword
@@ -379,6 +379,7 @@ pub enum Keyword {
Mod,
Mut,
Pub,
+ Return,
Struct,
Use,
While,
@@ -405,6 +406,7 @@ impl fmt::Display for Keyword {
Keyword::Mod => write!(f, "mod"),
Keyword::Mut => write!(f, "mut"),
Keyword::Pub => write!(f, "pub"),
+ Keyword::Return => write!(f, "return"),
Keyword::Struct => write!(f, "struct"),
Keyword::Use => write!(f, "use"),
Keyword::While => write!(f, "while"),
@@ -436,6 +438,7 @@ impl Keyword {
"mod" => Keyword::Mod,
"mut" => Keyword::Mut,
"pub" => Keyword::Pub,
+ "return" => Keyword::Return,
"struct" => Keyword::Struct,
"use" => Keyword::Use,
"while" => Keyword::While,
