about summary refs log tree commit diff
path: root/src/comp/syntax/parse/parser.rs
diff options
context:
space:
mode:
authorJoshua Clark <joshua.clark@txstate.edu>2012-01-23 23:19:00 -0600
committerJoshua Clark <joshua.clark@txstate.edu>2012-01-23 23:19:00 -0600
commitceae107e14249d9c747deeb6caddc6fe6d19626e (patch)
treefdd04f66578da372cc581ba8e6253eecc1be3ca1 /src/comp/syntax/parse/parser.rs
parent6766d0ead08ea261c081da7ee7854f1d21541d8c (diff)
downloadrust-ceae107e14249d9c747deeb6caddc6fe6d19626e.tar.gz
rust-ceae107e14249d9c747deeb6caddc6fe6d19626e.zip
Added to bad_expr_word_table reserved words
Diffstat (limited to 'src/comp/syntax/parse/parser.rs')
-rw-r--r--src/comp/syntax/parse/parser.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs
index 5a4925486d9..f7574b76371 100644
--- a/src/comp/syntax/parse/parser.rs
+++ b/src/comp/syntax/parse/parser.rs
@@ -1,4 +1,3 @@
-
 import core::{vec, str, option, either, result};
 import std::{io, fs};
 import option::{some, none};
@@ -150,7 +149,9 @@ fn bad_expr_word_table() -> hashmap<str, ()> {
                  "cont", "ret", "be", "fail", "type", "resource", "check",
                  "assert", "claim", "native", "fn", "pure",
                  "unsafe", "import", "export", "let", "const",
-                 "log", "copy", "sendfn", "impl", "iface", "enum"] {
+                 "log", "copy", "sendfn", "impl", "iface", "enum",
+                 "m32", "m64", "m128", "f80", "f16", f128",
+                 "class", "trait"] {
         words.insert(word, ());
     }
     words