diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-09-09 17:35:56 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-09-09 17:35:56 -0700 |
| commit | e7a01b7383df092c9b5fc9367541cd9f90a07c40 (patch) | |
| tree | c3b1afef2fd960bff295773084a85317acd772e9 /src/libsyntax/parse/parser.rs | |
| parent | e0c232025c2a175069de3dd30b52b0ac2dbc2f65 (diff) | |
| download | rust-e7a01b7383df092c9b5fc9367541cd9f90a07c40.tar.gz rust-e7a01b7383df092c9b5fc9367541cd9f90a07c40.zip | |
Introduce 'strict' keywords, that may not be used as idents anywhere
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 73ff35481d4..138b83f69f0 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -215,6 +215,7 @@ fn parser(sess: parse_sess, cfg: ast::crate_cfg, quote_depth: 0u, keywords: token::keyword_table(), restricted_keywords: token::restricted_keyword_table(), + strict_keywords: token::strict_keyword_table(), obsolete_set: std::map::hashmap(), } } @@ -235,6 +236,7 @@ struct parser { interner: interner<@~str>, keywords: hashmap<~str, ()>, restricted_keywords: hashmap<~str, ()>, + strict_keywords: hashmap<~str, ()>, /// The set of seen errors about obsolete syntax. Used to suppress /// extra detail when the same error is seen twice obsolete_set: hashmap<ObsoleteSyntax, ()>, |
