diff options
| author | Brian Anderson <andersrb@gmail.com> | 2012-01-24 13:57:29 -0800 |
|---|---|---|
| committer | Brian Anderson <andersrb@gmail.com> | 2012-01-24 13:57:29 -0800 |
| commit | 67630519323936c3ea492370a6dca0aa3aa1ee9e (patch) | |
| tree | c5f5ef03a813dd19f3815dd6fa5eda5c34b24493 /src/comp | |
| parent | bd17319b413258966368ea0926e8815d30add281 (diff) | |
| parent | ceae107e14249d9c747deeb6caddc6fe6d19626e (diff) | |
| download | rust-67630519323936c3ea492370a6dca0aa3aa1ee9e.tar.gz rust-67630519323936c3ea492370a6dca0aa3aa1ee9e.zip | |
Merge pull request #1631 from j-clark/patch-2
Added to bad_expr_word_table reserved words
Diffstat (limited to 'src/comp')
| -rw-r--r-- | src/comp/syntax/parse/parser.rs | 5 |
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 |
