Changeset 273
- Timestamp:
- 07/31/08 16:41:02 (5 years ago)
- Location:
- libyaml/branches/stable/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libyaml/branches/stable/src/parser.c
r250 r273 320 320 if (token->type != YAML_STREAM_START_TOKEN) { 321 321 return yaml_parser_set_parser_error(parser, 322 "did not f ound expected <stream-start>", token->start_mark);322 "did not find expected <stream-start>", token->start_mark); 323 323 } 324 324 … … 394 394 if (token->type != YAML_DOCUMENT_START_TOKEN) { 395 395 yaml_parser_set_parser_error(parser, 396 "did not f ound expected <document start>", token->start_mark);396 "did not find expected <document start>", token->start_mark); 397 397 goto error; 398 398 } … … 702 702 (block ? "while parsing a block node" 703 703 : "while parsing a flow node"), start_mark, 704 "did not f ound expected node content", token->start_mark);704 "did not find expected node content", token->start_mark); 705 705 goto error; 706 706 } … … 772 772 return yaml_parser_set_parser_error_context(parser, 773 773 "while parsing a block collection", POP(parser, parser->marks), 774 "did not f ound expected '-' indicator", token->start_mark);774 "did not find expected '-' indicator", token->start_mark); 775 775 } 776 776 } … … 882 882 return yaml_parser_set_parser_error_context(parser, 883 883 "while parsing a block mapping", POP(parser, parser->marks), 884 "did not f ound expected key", token->start_mark);884 "did not find expected key", token->start_mark); 885 885 } 886 886 } … … 976 976 return yaml_parser_set_parser_error_context(parser, 977 977 "while parsing a flow sequence", POP(parser, parser->marks), 978 "did not f ound expected ',' or ']'", token->start_mark);978 "did not find expected ',' or ']'", token->start_mark); 979 979 } 980 980 } … … 1128 1128 return yaml_parser_set_parser_error_context(parser, 1129 1129 "while parsing a flow mapping", POP(parser, parser->marks), 1130 "did not f ound expected ',' or '}'", token->start_mark);1130 "did not find expected ',' or '}'", token->start_mark); 1131 1131 } 1132 1132 } -
libyaml/branches/stable/src/scanner.c
r243 r273 1079 1079 return yaml_parser_set_scanner_error(parser, 1080 1080 "while scanning a simple key", simple_key->mark, 1081 "could not f ound expected ':'");1081 "could not find expected ':'"); 1082 1082 } 1083 1083 … … 1148 1148 return yaml_parser_set_scanner_error(parser, 1149 1149 "while scanning a simple key", simple_key->mark, 1150 "could not f ound expected ':'");1150 "could not find expected ':'"); 1151 1151 } 1152 1152 } … … 2073 2073 if (!IS_BREAKZ(parser->buffer)) { 2074 2074 yaml_parser_set_scanner_error(parser, "while scanning a directive", 2075 start_mark, "did not f ound expected comment or line break");2075 start_mark, "did not find expected comment or line break"); 2076 2076 goto error; 2077 2077 } … … 2127 2127 if (string.start == string.pointer) { 2128 2128 yaml_parser_set_scanner_error(parser, "while scanning a directive", 2129 start_mark, "c annot found expected directive name");2129 start_mark, "could not find expected directive name"); 2130 2130 goto error; 2131 2131 } … … 2473 2473 if (!IS_BLANKZ(parser->buffer)) { 2474 2474 yaml_parser_set_scanner_error(parser, "while scanning a tag", 2475 start_mark, "did not f ound expected whitespace or line break");2475 start_mark, "did not find expected whitespace or line break"); 2476 2476 goto error; 2477 2477 } … … 2827 2827 if (!IS_BREAKZ(parser->buffer)) { 2828 2828 yaml_parser_set_scanner_error(parser, "while scanning a block scalar", 2829 start_mark, "did not f ound expected comment or line break");2829 start_mark, "did not find expected comment or line break"); 2830 2830 goto error; 2831 2831 }
Note: See TracChangeset
for help on using the changeset viewer.
