about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2013-07-29 15:20:40 -0700
committerGraydon Hoare <graydon@mozilla.com>2013-07-30 16:11:49 -0700
commit9a2d183d6ae83a0119f5cce1f95e3770ddf5d689 (patch)
tree78c38655d96aaf8e039c44b2b342d5d1ab3c5d91 /src/libsyntax/parse
parenta8840d70a517d29183f2c6e4d9da4920541700d7 (diff)
downloadrust-9a2d183d6ae83a0119f5cce1f95e3770ddf5d689.tar.gz
rust-9a2d183d6ae83a0119f5cce1f95e3770ddf5d689.zip
syntax: add temporary 'foreach' keyword.
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/token.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs
index 66735a3cef0..a9f0db32d3e 100644
--- a/src/libsyntax/parse/token.rs
+++ b/src/libsyntax/parse/token.rs
@@ -475,6 +475,7 @@ fn mk_fresh_ident_interner() -> @ident_interner {
 
         "be",                 // 65
         "in",                 // 66
+        "foreach",            // 67
     ];
 
     @ident_interner {
@@ -571,6 +572,7 @@ pub mod keywords {
         False,
         Fn,
         For,
+        ForEach,
         If,
         Impl,
         In,
@@ -614,6 +616,7 @@ pub mod keywords {
                 False => ident { name: 40, ctxt: 0 },
                 Fn => ident { name: 41, ctxt: 0 },
                 For => ident { name: 42, ctxt: 0 },
+                ForEach => ident { name: 67, ctxt: 0 },
                 If => ident { name: 43, ctxt: 0 },
                 Impl => ident { name: 44, ctxt: 0 },
                 In => ident { name: 66, ctxt: 0 },