about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2013-07-29 15:15:33 -0700
committerGraydon Hoare <graydon@mozilla.com>2013-07-30 16:11:49 -0700
commita8840d70a517d29183f2c6e4d9da4920541700d7 (patch)
treedca479d02dd756386d43afdc586366e26e065a06
parent436d9fa45d7df98f49bc036de4254d5946478c5c (diff)
downloadrust-a8840d70a517d29183f2c6e4d9da4920541700d7.tar.gz
rust-a8840d70a517d29183f2c6e4d9da4920541700d7.zip
syntax: add 'in' keyword
-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 52b6d4459bf..66735a3cef0 100644
--- a/src/libsyntax/parse/token.rs
+++ b/src/libsyntax/parse/token.rs
@@ -474,6 +474,7 @@ fn mk_fresh_ident_interner() -> @ident_interner {
         "while",              // 64
 
         "be",                 // 65
+        "in",                 // 66
     ];
 
     @ident_interner {
@@ -572,6 +573,7 @@ pub mod keywords {
         For,
         If,
         Impl,
+        In,
         Let,
         __Log,
         Loop,
@@ -614,6 +616,7 @@ pub mod keywords {
                 For => ident { name: 42, ctxt: 0 },
                 If => ident { name: 43, ctxt: 0 },
                 Impl => ident { name: 44, ctxt: 0 },
+                In => ident { name: 66, ctxt: 0 },
                 Let => ident { name: 45, ctxt: 0 },
                 __Log => ident { name: 46, ctxt: 0 },
                 Loop => ident { name: 47, ctxt: 0 },