Add "module" program variant

This commit is contained in:
Joscha 2022-11-20 17:40:58 +01:00
parent 9658907d76
commit 2be47871da
2 changed files with 23 additions and 8 deletions

View file

@ -45,7 +45,7 @@ pub fn ident() -> EParser<Ident> {
.try_map(|name, span| {
if matches!(
&name as &str,
"nil" | "true" | "false" | "local" | "function" | "not" | "and" | "or"
"nil" | "true" | "false" | "not" | "and" | "or" | "local" | "function" | "module"
) {
Err(Simple::custom(span, "identifier uses reserved name"))
} else {