From 87a488048d59dcdcfe191c1cfcaaf1684416eb27 Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Mon, 6 Feb 2012 22:03:17 +0100 Subject: Make keyword table in reference reflect reality more closely And remove the part about reserved words. --- src/comp/syntax/parse/parser.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/comp/syntax/parse/parser.rs') diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs index 65611c2f30f..33b6432a09c 100644 --- a/src/comp/syntax/parse/parser.rs +++ b/src/comp/syntax/parse/parser.rs @@ -147,12 +147,12 @@ fn new_parser(sess: parse_sess, cfg: ast::crate_cfg, rdr: reader, // interpreted as a specific kind of statement, which would be confusing. fn bad_expr_word_table() -> hashmap { let words = new_str_hash(); - for word in ["mod", "if", "else", "while", "do", "alt", "for", "break", - "cont", "ret", "be", "fail", "type", "resource", "check", - "assert", "claim", "native", "fn", "pure", - "unsafe", "import", "export", "let", "const", - "log", "copy", "impl", "iface", "enum", - "class", "trait"] { + for word in ["alt", "assert", "be", "break", "check", "claim", + "class", "const", "cont", "copy", "do", "else", "enum", + "export", "fail", "fn", "for", "if", "iface", "impl", + "import", "let", "log", "mod", "mutable", "native", "pure", + "resource", "ret", "trait", "type", "unchecked", "unsafe", + "while"] { words.insert(word, ()); } words -- cgit 1.4.1-3-g733a5