about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-09-11 19:26:48 -0700
committerBrian Anderson <banderson@mozilla.com>2012-09-11 19:26:48 -0700
commit3d2a74a160c5772efccda711e60c173077099ef2 (patch)
tree232a101ea013a8ead9633bd9a83c8a6e9c62798a /src/libsyntax/parse/parser.rs
parentea01ee2e9e161a7028b98848c071e5fe9c30c7f7 (diff)
downloadrust-3d2a74a160c5772efccda711e60c173077099ef2.tar.gz
rust-3d2a74a160c5772efccda711e60c173077099ef2.zip
Reserve 'be' as a keyword
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
-rw-r--r--src/libsyntax/parse/parser.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 676610c66be..ea824ea2fb6 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -216,6 +216,7 @@ fn parser(sess: parse_sess, cfg: ast::crate_cfg,
         keywords: token::keyword_table(),
         restricted_keywords: token::restricted_keyword_table(),
         strict_keywords: token::strict_keyword_table(),
+        reserved_keywords: token::reserved_keyword_table(),
         obsolete_set: std::map::HashMap(),
     }
 }
@@ -237,6 +238,7 @@ struct parser {
     keywords: HashMap<~str, ()>,
     restricted_keywords: HashMap<~str, ()>,
     strict_keywords: HashMap<~str, ()>,
+    reserved_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, ()>,