diff options
| author | Marijn Haverbeke <marijnh@gmail.com> | 2012-02-06 22:03:17 +0100 |
|---|---|---|
| committer | Marijn Haverbeke <marijnh@gmail.com> | 2012-02-06 22:03:17 +0100 |
| commit | 87a488048d59dcdcfe191c1cfcaaf1684416eb27 (patch) | |
| tree | 3548e994dd99655f8032049a0c98d445accfa2f1 /src/comp/syntax/parse | |
| parent | a08e589390993d27bf8504c1c8c54586bbfa3d37 (diff) | |
| download | rust-87a488048d59dcdcfe191c1cfcaaf1684416eb27.tar.gz rust-87a488048d59dcdcfe191c1cfcaaf1684416eb27.zip | |
Make keyword table in reference reflect reality more closely
And remove the part about reserved words.
Diffstat (limited to 'src/comp/syntax/parse')
| -rw-r--r-- | src/comp/syntax/parse/parser.rs | 12 |
1 files changed, 6 insertions, 6 deletions
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<str, ()> { 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 |
