about summary refs log tree commit diff
path: root/src/libsyntax/parse/token.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2012-07-31 19:25:24 -0700
committerPatrick Walton <pcwalton@mimiga.net>2012-07-31 19:26:25 -0700
commitb414db041be115d877e5b17bc86ea019420b672c (patch)
treed7e15ba792c8376aaabe9727726de34b03e89baf /src/libsyntax/parse/token.rs
parenta841789a41941ad73a57cd9972dfbd5fdff02685 (diff)
downloadrust-b414db041be115d877e5b17bc86ea019420b672c.tar.gz
rust-b414db041be115d877e5b17bc86ea019420b672c.zip
rustc: Parse by-reference pattern bindings with the "ref" keyword
Diffstat (limited to 'src/libsyntax/parse/token.rs')
-rw-r--r--src/libsyntax/parse/token.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs
index 1d4e67c5d14..cbea14f3185 100644
--- a/src/libsyntax/parse/token.rs
+++ b/src/libsyntax/parse/token.rs
@@ -331,7 +331,7 @@ fn restricted_keyword_table() -> hashmap<~str, ()> {
         ~"new",
         ~"owned",
         ~"pure",
-        ~"ret", ~"return",
+        ~"ref", ~"ret", ~"return",
         ~"struct",
         ~"true", ~"trait", ~"type",
         ~"unchecked", ~"unsafe",