Skip to content

Commit

Permalink
Removed invalid simple key assertion (thank to Jonathan Gray).
Browse files Browse the repository at this point in the history
  • Loading branch information
xitology committed Nov 28, 2014
1 parent 1dda168 commit 9465961
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/scanner.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit 9465961

Please sign in to comment.