if (token->type != YAML_STREAM_START_TOKEN) {
return yaml_parser_set_parser_error(parser,
- "did not found expected <stream-start>", token->start_mark);
+ "did not find expected <stream-start>", token->start_mark);
}
parser->state = YAML_PARSE_IMPLICIT_DOCUMENT_START_STATE;
if (!token) goto error;
if (token->type != YAML_DOCUMENT_START_TOKEN) {
yaml_parser_set_parser_error(parser,
- "did not found expected <document start>", token->start_mark);
+ "did not find expected <document start>", token->start_mark);
goto error;
}
if (!PUSH(parser, parser->states, YAML_PARSE_DOCUMENT_END_STATE))
yaml_parser_set_parser_error_context(parser,
(block ? "while parsing a block node"
: "while parsing a flow node"), start_mark,
- "did not found expected node content", token->start_mark);
+ "did not find expected node content", token->start_mark);
goto error;
}
}
{
return yaml_parser_set_parser_error_context(parser,
"while parsing a block collection", POP(parser, parser->marks),
- "did not found expected '-' indicator", token->start_mark);
+ "did not find expected '-' indicator", token->start_mark);
}
}
{
return yaml_parser_set_parser_error_context(parser,
"while parsing a block mapping", POP(parser, parser->marks),
- "did not found expected key", token->start_mark);
+ "did not find expected key", token->start_mark);
}
}
else {
return yaml_parser_set_parser_error_context(parser,
"while parsing a flow sequence", POP(parser, parser->marks),
- "did not found expected ',' or ']'", token->start_mark);
+ "did not find expected ',' or ']'", token->start_mark);
}
}
else {
return yaml_parser_set_parser_error_context(parser,
"while parsing a flow mapping", POP(parser, parser->marks),
- "did not found expected ',' or '}'", token->start_mark);
+ "did not find expected ',' or '}'", token->start_mark);
}
}
}
else if (token->type == YAML_TAG_DIRECTIVE_TOKEN) {
- yaml_tag_directive_t value = {
- token->data.tag_directive.handle,
- token->data.tag_directive.prefix
- };
+ yaml_tag_directive_t value;
+ value.handle = token->data.tag_directive.handle;
+ value.prefix = token->data.tag_directive.prefix;
+
if (!yaml_parser_append_tag_directive(parser, value, 0,
token->start_mark))
goto error;