Skip to content

Commit

Permalink
let is a reserved word
Browse files Browse the repository at this point in the history
  • Loading branch information
lpil committed Aug 31, 2020
1 parent cefc474 commit 2ab6bc2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,9 @@ pub fn make_call(

pub fn is_gleam_reserved_word(s: &str) -> bool {
match s {
"pub" | "fn" | "import" | "as" | "type" | "extern" | "case" | "try" | "assert" => true,
"pub" | "fn" | "import" | "as" | "type" | "extern" | "case" | "let" | "try" | "assert" => {
true
}
_ => false,
}
}

0 comments on commit 2ab6bc2

Please sign in to comment.