diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2012-01-19 19:23:05 -0800 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2012-01-19 19:23:47 -0800 |
| commit | a23f188bdbff224337ca6bdcd164bb924d273eb5 (patch) | |
| tree | 022737b374464bb10f543062f2f74b71774aded5 /src/comp/syntax/parse | |
| parent | fdbe206a763516eeb816a5d1c137c87801556479 (diff) | |
| download | rust-a23f188bdbff224337ca6bdcd164bb924d273eb5.tar.gz rust-a23f188bdbff224337ca6bdcd164bb924d273eb5.zip | |
rustc: Stop parsing "tag"
Diffstat (limited to 'src/comp/syntax/parse')
| -rw-r--r-- | src/comp/syntax/parse/parser.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs index 61b562480ed..ae0cf5bef60 100644 --- a/src/comp/syntax/parse/parser.rs +++ b/src/comp/syntax/parse/parser.rs @@ -147,7 +147,7 @@ fn bad_expr_word_table() -> hashmap<str, ()> { "cont", "ret", "be", "fail", "type", "resource", "check", "assert", "claim", "native", "fn", "pure", "unsafe", "block", "import", "export", "let", "const", - "log", "copy", "sendfn", "impl", "iface", "tag", "enum"] { + "log", "copy", "sendfn", "impl", "iface", "enum"] { words.insert(word, ()); } words @@ -2154,7 +2154,7 @@ fn parse_item(p: parser, attrs: [ast::attribute]) -> option::t<@ast::item> { ret some(parse_item_native_mod(p, attrs)); } if eat_word(p, "type") { ret some(parse_item_type(p, attrs)); - } else if eat_word(p, "tag") || eat_word(p, "enum") { + } else if eat_word(p, "enum") { ret some(parse_item_tag(p, attrs)); } else if eat_word(p, "iface") { ret some(parse_item_iface(p, attrs)); |
