@@ -70,7 +70,7 @@
70 * %TAG !yaml! tag:yaml.org,2002:
70 * %TAG !yaml! tag:yaml.org,2002:
73− * The correspoding sequence of tokens:
73+ * The corresponding sequence of tokens:
75 * STREAM-START(utf-8)
75 * STREAM-START(utf-8)
76 * VERSION-DIRECTIVE(1,1)
76 * VERSION-DIRECTIVE(1,1)
@@ -762,7 +762,7 @@ yaml_parser_scan(yaml_parser_t *parser, yaml_token_t *token)
764 /* Fetch the next token from the queue. */
764 /* Fetch the next token from the queue. */
766 *token = DEQUEUE(parser, parser->tokens);
766 *token = DEQUEUE(parser, parser->tokens);
767 parser->token_available = 0;
767 parser->token_available = 0;
768 parser->tokens_parsed ++;
768 parser->tokens_parsed ++;
@@ -1114,7 +1114,7 @@ yaml_parser_save_simple_key(yaml_parser_t *parser)
1114 yaml_simple_key_t simple_key;
1114 yaml_simple_key_t simple_key;
1115 simple_key.possible = 1;
1115 simple_key.possible = 1;
1116 simple_key.required = required;
1116 simple_key.required = required;
1117− simple_key.token_number =
1117+ simple_key.token_number =
1118 parser->tokens_parsed + (parser->tokens.tail - parser->tokens.head);
1118 parser->tokens_parsed + (parser->tokens.tail - parser->tokens.head);
1119 simple_key.mark = parser->mark;
1119 simple_key.mark = parser->mark;
@@ -1200,7 +1200,7 @@ yaml_parser_decrease_flow_level(yaml_parser_t *parser)
1200 * Push the current indentation level to the stack and set the new level
1200 * Push the current indentation level to the stack and set the new level
1201 * the current column is greater than the indentation level. In this case,
1201 * the current column is greater than the indentation level. In this case,
1202 * append or insert the specified token into the token queue.
1202 * append or insert the specified token into the token queue.
1206static int
1206static int
@@ -1251,7 +1251,7 @@ yaml_parser_roll_indent(yaml_parser_t *parser, ptrdiff_t column,
1253 * Pop indentation levels from the indents stack until the current level
1253 * Pop indentation levels from the indents stack until the current level
1254− * becomes less or equal to the column. For each intendation level, append
1254+ * becomes less or equal to the column. For each indentation level, append
1255 * the BLOCK-END token.
1255 * the BLOCK-END token.
@@ -1266,7 +1266,7 @@ yaml_parser_unroll_indent(yaml_parser_t *parser, ptrdiff_t column)
1266 if (parser->flow_level)
1266 if (parser->flow_level)
1267 return 1;
1267 return 1;
1269− /* Loop through the intendation levels in the stack. */
1269+ /* Loop through the indentation levels in the stack. */
1271 while (parser->indent > column)
1271 while (parser->indent > column)
@@ -1938,7 +1938,7 @@ yaml_parser_scan_to_next_token(yaml_parser_t *parser)
1939 * - in the flow context;
1939 * - in the flow context;
1940 * - in the block context, but not at the beginning of the line or
1940 * - in the block context, but not at the beginning of the line or
1941− * after '-', '?', or ':' (complex value).
1941+ * after '-', '?', or ':' (complex value).
1944 if (!CACHE(parser, 1)) return 0;
1944 if (!CACHE(parser, 1)) return 0;
@@ -2053,7 +2053,7 @@ yaml_parser_scan_directive(yaml_parser_t *parser, yaml_token_t *token)
2055 yaml_parser_set_scanner_error(parser, "while scanning a directive",
2055 yaml_parser_set_scanner_error(parser, "while scanning a directive",
2056− start_mark, "found uknown directive name");
2056+ start_mark, "found unknown directive name");
2057 goto error;
2057 goto error;
@@ -2775,15 +2775,15 @@ yaml_parser_scan_block_scalar(yaml_parser_t *parser, yaml_token_t *token,
2776 if (IS_DIGIT(parser->buffer))
2776 if (IS_DIGIT(parser->buffer))
2778− /* Check that the intendation is greater than 0. */
2778+ /* Check that the indentation is greater than 0. */
2780 if (CHECK(parser->buffer, '0')) {
2780 if (CHECK(parser->buffer, '0')) {
2781 yaml_parser_set_scanner_error(parser, "while scanning a block scalar",
2781 yaml_parser_set_scanner_error(parser, "while scanning a block scalar",
2782− start_mark, "found an intendation indicator equal to 0");
2782+ start_mark, "found an indentation indicator equal to 0");
2783 goto error;
2783 goto error;
2786− /* Get the intendation level and eat the indicator. */
2786+ /* Get the indentation level and eat the indicator. */
2788 increment = AS_DIGIT(parser->buffer);
2788 increment = AS_DIGIT(parser->buffer);
@@ -2797,7 +2797,7 @@ yaml_parser_scan_block_scalar(yaml_parser_t *parser, yaml_token_t *token,
2798 if (CHECK(parser->buffer, '0')) {
2798 if (CHECK(parser->buffer, '0')) {
2799 yaml_parser_set_scanner_error(parser, "while scanning a block scalar",
2799 yaml_parser_set_scanner_error(parser, "while scanning a block scalar",
2800− start_mark, "found an intendation indicator equal to 0");
2800+ start_mark, "found an indentation indicator equal to 0");
2801 goto error;
2801 goto error;
@@ -2847,7 +2847,7 @@ yaml_parser_scan_block_scalar(yaml_parser_t *parser, yaml_token_t *token,
2848 end_mark = parser->mark;
2848 end_mark = parser->mark;
2850− /* Set the intendation level if it was specified. */
2850+ /* Set the indentation level if it was specified. */
2852 if (increment) {
2852 if (increment) {
2853 indent = parser->indent >= 0 ? parser->indent+increment : increment;
2853 indent = parser->indent >= 0 ? parser->indent+increment : increment;
@@ -2913,7 +2913,7 @@ yaml_parser_scan_block_scalar(yaml_parser_t *parser, yaml_token_t *token,
2914 if (!READ_LINE(parser, leading_break)) goto error;
2914 if (!READ_LINE(parser, leading_break)) goto error;
2916− /* Eat the following intendation spaces and line breaks. */
2916+ /* Eat the following indentation spaces and line breaks. */
2918 if (!yaml_parser_scan_block_scalar_breaks(parser,
2918 if (!yaml_parser_scan_block_scalar_breaks(parser,
2919 &indent, &trailing_breaks, start_mark, &end_mark)) goto error;
2919 &indent, &trailing_breaks, start_mark, &end_mark)) goto error;
@@ -2948,8 +2948,8 @@ error:
2951− * Scan intendation spaces and line breaks for a block scalar. Determine the
2951+ * Scan indentation spaces and line breaks for a block scalar. Determine the
2952− * intendation level if needed.
2952+ * indentation level if needed.
2955static int
2955static int
@@ -2961,11 +2961,11 @@ yaml_parser_scan_block_scalar_breaks(yaml_parser_t *parser,
2962 *end_mark = parser->mark;
2962 *end_mark = parser->mark;
2964− /* Eat the intendation spaces and line breaks. */
2964+ /* Eat the indentation spaces and line breaks. */
2966 while (1)
2966 while (1)
2968− /* Eat the intendation spaces. */
2968+ /* Eat the indentation spaces. */
2970 if (!CACHE(parser, 1)) return 0;
2970 if (!CACHE(parser, 1)) return 0;
@@ -2978,12 +2978,12 @@ yaml_parser_scan_block_scalar_breaks(yaml_parser_t *parser,
2978 if ((int)parser->mark.column > max_indent)
2978 if ((int)parser->mark.column > max_indent)
2979 max_indent = (int)parser->mark.column;
2979 max_indent = (int)parser->mark.column;
2981− /* Check for a tab character messing the intendation. */
2981+ /* Check for a tab character messing the indentation. */
2983 if ((!*indent || (int)parser->mark.column < *indent)
2983 if ((!*indent || (int)parser->mark.column < *indent)
2984 && IS_TAB(parser->buffer)) {
2984 && IS_TAB(parser->buffer)) {
2985 return yaml_parser_set_scanner_error(parser, "while scanning a block scalar",
2985 return yaml_parser_set_scanner_error(parser, "while scanning a block scalar",
2986− start_mark, "found a tab character where an intendation space is expected");
2986+ start_mark, "found a tab character where an indentation space is expected");
2989 /* Have we found a non-empty line? */
2989 /* Have we found a non-empty line? */
@@ -3007,7 +3007,7 @@ yaml_parser_scan_block_scalar_breaks(yaml_parser_t *parser,
3007 *indent = 1;
3007 *indent = 1;
3010− return 1;
3010+ return 1;
@@ -3162,6 +3162,10 @@ yaml_parser_scan_flow_scalar(yaml_parser_t *parser, yaml_token_t *token,
3162 *(string.pointer++) = '"';
3162 *(string.pointer++) = '"';
3166+ *(string.pointer++) = '/';
3165 case '\'':
3169 case '\'':
3166 *(string.pointer++) = '\'';
3170 *(string.pointer++) = '\'';
@@ -3504,12 +3508,12 @@ yaml_parser_scan_plain_scalar(yaml_parser_t *parser, yaml_token_t *token)
3505 if (IS_BLANK(parser->buffer))
3509 if (IS_BLANK(parser->buffer))
3507− /* Check for tab character that abuse intendation. */
3511+ /* Check for tab character that abuse indentation. */
3509 if (leading_blanks && (int)parser->mark.column < indent
3513 if (leading_blanks && (int)parser->mark.column < indent
3510 && IS_TAB(parser->buffer)) {
3514 && IS_TAB(parser->buffer)) {
3511 yaml_parser_set_scanner_error(parser, "while scanning a plain scalar",
3515 yaml_parser_set_scanner_error(parser, "while scanning a plain scalar",
3512− start_mark, "found a tab character that violate intendation");
3516+ start_mark, "found a tab character that violate indentation");
3513 goto error;
3517 goto error;
@@ -3542,7 +3546,7 @@ yaml_parser_scan_plain_scalar(yaml_parser_t *parser, yaml_token_t *token)
3542 if (!CACHE(parser, 1)) goto error;
3546 if (!CACHE(parser, 1)) goto error;
3545− /* Check intendation level. */
3549+ /* Check indentation level. */
3547 if (!parser->flow_level && (int)parser->mark.column < indent)
3551 if (!parser->flow_level && (int)parser->mark.column < indent)
@@ -3573,4 +3577,3 @@ error:
3574 return 0;
3578 return 0;