rustc: Stop parsing "tag"
This commit is contained in:
parent
fdbe206a76
commit
a23f188bdb
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user