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 = {}
Index: /pyyaml/trunk/lib3/yaml/scanner.py
===================================================================
--- /pyyaml/trunk/lib3/yaml/scanner.py	(revision 328)
+++ /pyyaml/trunk/lib3/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 = {}
Index: /pyyaml/trunk/tests/data/invalid-item-without-trailing-break.loader-error
===================================================================
--- /pyyaml/trunk/tests/data/invalid-item-without-trailing-break.loader-error	(revision 354)
+++ /pyyaml/trunk/tests/data/invalid-item-without-trailing-break.loader-error	(revision 354)
@@ -0,0 +1,2 @@
+-
+-0
