Skip to content

Commit

Permalink
Abort when else is used without @ (#449) (#450)
Browse files Browse the repository at this point in the history
  • Loading branch information
puetzp authored Jan 6, 2025
1 parent 31d3792 commit 3eaa6e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maud_macros/src/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3eaa6e8

Please sign in to comment.