Skip to content

Commit 2ab6bc2

Browse files
committed
let is a reserved word
1 parent cefc474 commit 2ab6bc2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/parser.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,9 @@ pub fn make_call(
500500

501501
pub fn is_gleam_reserved_word(s: &str) -> bool {
502502
match s {
503-
"pub" | "fn" | "import" | "as" | "type" | "extern" | "case" | "try" | "assert" => true,
503+
"pub" | "fn" | "import" | "as" | "type" | "extern" | "case" | "let" | "try" | "assert" => {
504+
true
505+
}
504506
_ => false,
505507
}
506508
}

0 commit comments

Comments
 (0)