]> andersk Git - libyaml.git/commitdiff
Removed invalid simple key assertion (thank to Jonathan Gray).
authorKirill Simonov <xi@resolvent.net>
Fri, 28 Nov 2014 17:55:12 +0000 (11:55 -0600)
committerKirill Simonov <xi@resolvent.net>
Fri, 28 Nov 2014 17:55:12 +0000 (11:55 -0600)
src/scanner.c

index 88d4fa5df24cb68f752135978f5f17e7e68810a1..5ec0be086d27a8f175ffecd28239118aca100580 100644 (file)
@@ -1105,13 +1105,6 @@ yaml_parser_save_simple_key(yaml_parser_t *parser)
     int required = (!parser->flow_level
             && parser->indent == (ptrdiff_t)parser->mark.column);
 
-    /*
-     * A simple key is required only when it is the first token in the current
-     * line.  Therefore it is always allowed.  But we add a check anyway.
-     */
-
-    assert(parser->simple_key_allowed || !required);    /* Impossible. */
-
     /*
      * If the current position may start a simple key, save it.
      */
This page took 0.034093 seconds and 5 git commands to generate.