diff --git a/src/scanner.c b/src/scanner.c index 55e11e32..52a80bcf 100644 --- a/src/scanner.c +++ b/src/scanner.c @@ -3436,7 +3436,6 @@ yaml_parser_scan_plain_scalar(yaml_parser_t *parser, yaml_token_t *token) && CHECK(parser->buffer, ':') && ( CHECK_AT(parser->buffer, ',', 1) - || CHECK_AT(parser->buffer, '?', 1) || CHECK_AT(parser->buffer, '[', 1) || CHECK_AT(parser->buffer, ']', 1) || CHECK_AT(parser->buffer, '{', 1) @@ -3453,7 +3452,7 @@ yaml_parser_scan_plain_scalar(yaml_parser_t *parser, yaml_token_t *token) if ((CHECK(parser->buffer, ':') && IS_BLANKZ_AT(parser->buffer, 1)) || (parser->flow_level && (CHECK(parser->buffer, ',') - || CHECK(parser->buffer, '?') || CHECK(parser->buffer, '[') + || CHECK(parser->buffer, '[') || CHECK(parser->buffer, ']') || CHECK(parser->buffer, '{') || CHECK(parser->buffer, '}')))) break;