Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
perlpunk committed May 17, 2020
1 parent 881170f commit 2289453
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/scanner.c
Original file line number Diff line number Diff line change
Expand Up @@ -2474,6 +2474,12 @@ yaml_parser_scan_tag(yaml_parser_t *parser, yaml_token_t *token)

if (!CACHE(parser, 1)) goto error;

if (!CHECK(parser->buffer, ',') && !IS_BLANKZ(parser->buffer)) {
yaml_parser_set_scanner_error(parser, "while scanning a tag",
start_mark, "did not find expected whitespace or line break");
goto error;
}

end_mark = parser->mark;

/* Create a token. */
Expand Down

0 comments on commit 2289453

Please sign in to comment.