Skip to content

Commit

Permalink
S98Z fallout, even cases with chomp keep are illegal
Browse files Browse the repository at this point in the history
Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
  • Loading branch information
pantoniou committed Feb 11, 2020
1 parent 19a5f6a commit 590d78c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion src/lib/fy-parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -2839,7 +2839,7 @@ int fy_fetch_block_scalar(struct fy_parser *fyp, bool is_literal, int c)
goto err_out;
}

if (empty && c == '#' && fyp->column > fyp->indent && chomp != FYAC_KEEP) {
if (empty && c == '#' && fyp->column > fyp->indent) {
FYP_MARK_ERROR(fyp, &handle.start_mark, &handle.end_mark, FYEM_SCAN,
"empty block scalar with wrongly indented comment line after spaces only");
goto err_out;
Expand Down
9 changes: 0 additions & 9 deletions test/emitter-examples/block10.yaml

This file was deleted.

0 comments on commit 590d78c

Please sign in to comment.