Index: pyyaml/trunk/lib/yaml/scanner.py
===================================================================
--- pyyaml/trunk/lib/yaml/scanner.py	(revision 328)
+++ pyyaml/trunk/lib/yaml/scanner.py	(revision 354)
@@ -375,5 +375,6 @@
         self.unwind_indent(-1)
 
-        # Reset everything (not really needed).
+        # Reset simple keys.
+        self.remove_possible_simple_key()
         self.allow_simple_key = False
         self.possible_simple_keys = {}
