Skip to content

Commit 6763051

Browse files
committed
Merge pull request #1631 from j-clark/patch-2
Added to bad_expr_word_table reserved words
2 parents bd17319 + ceae107 commit 6763051

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/comp/syntax/parse/parser.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import core::{vec, str, option, either, result};
32
import std::{io, fs};
43
import option::{some, none};
@@ -150,7 +149,9 @@ fn bad_expr_word_table() -> hashmap<str, ()> {
150149
"cont", "ret", "be", "fail", "type", "resource", "check",
151150
"assert", "claim", "native", "fn", "pure",
152151
"unsafe", "import", "export", "let", "const",
153-
"log", "copy", "sendfn", "impl", "iface", "enum"] {
152+
"log", "copy", "sendfn", "impl", "iface", "enum",
153+
"m32", "m64", "m128", "f80", "f16", f128",
154+
"class", "trait"] {
154155
words.insert(word, ());
155156
}
156157
words

0 commit comments

Comments
 (0)