# HG changeset patch
# User Ingy döt Net <ingy@ingy.net>
# Date 1417195309 28800
#      Fri Nov 28 09:21:49 2014 -0800
# Node ID e34efba7d7fa3094b89211878fb3def95ae4f8b8
# Parent  45b897e3ec13904950dc27184091cfba48153540
Fix for https://bitbucket.org/xi/libyaml/issue/10/

https://bitbucket.org/xi/libyaml/issue/10/wrapped-strings-cause-assert-failure

Commenting out the assert makes the scanner do the right thing and
results in just a simple parse failure.

diff --git a/src/scanner.c b/src/scanner.c
--- a/src/scanner.c
+++ b/src/scanner.c
@@ -1110,7 +1110,9 @@
      * line.  Therefore it is always allowed.  But we add a check anyway.
      */
 
-    assert(parser->simple_key_allowed || !required);    /* Impossible. */
+    /* XXX This caused:
+     * https://bitbucket.org/xi/libyaml/issue/10/wrapped-strings-cause-assert-failure
+    assert(parser->simple_key_allowed || !required); */    /* Impossible. */
 
     /*
      * If the current position may start a simple key, save it.