about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2011-01-24 15:25:30 -0800
committerGraydon Hoare <graydon@mozilla.com>2011-01-24 15:25:30 -0800
commit65da18faf8eb17cd258d373c316f048d5ca8ee56 (patch)
treedb044108c851210f0dc771f28084d381ccfb10f0 /src
parentd97137734b924c8b7fff75d0f31ff1ee6871f124 (diff)
downloadrust-65da18faf8eb17cd258d373c316f048d5ca8ee56.tar.gz
rust-65da18faf8eb17cd258d373c316f048d5ca8ee56.zip
Teach parser to recognize ITER keyword as item-start.
Diffstat (limited to 'src')
-rw-r--r--src/comp/front/parser.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs
index 406e989234d..e36905a3274 100644
--- a/src/comp/front/parser.rs
+++ b/src/comp/front/parser.rs
@@ -1645,6 +1645,7 @@ fn peeking_at_item(parser p) -> bool {
         case (token.UNSAFE) { ret true; }
         case (token.CONST) { ret true; }
         case (token.FN) { ret true; }
+        case (token.ITER) { ret true; }
         case (token.MOD) { ret true; }
         case (token.TYPE) { ret true; }
         case (token.TAG) { ret true; }