summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-09-11 18:17:13 -0700
committerBrian Anderson <banderson@mozilla.com>2012-09-11 18:17:26 -0700
commitfb851242b7b47546ae591b75642361a494536a53 (patch)
tree5c2bb7e0e59096147207c801abf6a4b13547a15c /src/libsyntax/parse
parent8672b9003f17b6e38a9c55f92dfc1deef91b1344 (diff)
downloadrust-fb851242b7b47546ae591b75642361a494536a53.tar.gz
rust-fb851242b7b47546ae591b75642361a494536a53.zip
Promote 'pub' and 'priv' from restricted to strict keywords
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/token.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs
index cd422b03a4b..aac36040cf0 100644
--- a/src/libsyntax/parse/token.rs
+++ b/src/libsyntax/parse/token.rs
@@ -414,7 +414,6 @@ fn restricted_keyword_table() -> HashMap<~str, ()> {
         ~"const", ~"copy",
         ~"fail", ~"fn",
         ~"impl",
-        ~"priv", ~"pub",
         ~"unsafe"
     ];
     for keys.each |word| {
@@ -435,7 +434,7 @@ fn strict_keyword_table() -> HashMap<~str, ()> {
         ~"if",
         ~"let", ~"log", ~"loop",
         ~"match", ~"mod", ~"move", ~"mut",
-        ~"pure",
+        ~"priv", ~"pub", ~"pure",
         ~"ref", ~"return",
         ~"struct",
         ~"true", ~"trait", ~"type",