From b39eabb7a997089a1683f56f64315e1cd2d6b5eb Mon Sep 17 00:00:00 2001 From: puetzp Date: Tue, 12 Nov 2024 17:01:55 +0100 Subject: [PATCH] Abort when `else` is used without `@` (lambda-fairy/maud#449) --- maud_macros/src/parse.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maud_macros/src/parse.rs b/maud_macros/src/parse.rs index 05af2894..45e9766c 100644 --- a/maud_macros/src/parse.rs +++ b/maud_macros/src/parse.rs @@ -137,7 +137,7 @@ impl Parser { TokenTree::Ident(ident) => { let ident_string = ident.to_string(); match ident_string.as_str() { - "if" | "while" | "for" | "match" | "let" => { + "if" | "while" | "for" | "match" | "let" | "else" => { abort!( ident, "found keyword `{}`", ident_string;