@@ -70,7 +70,7 @@
7070 * %TAG !yaml! tag:yaml.org,2002:
7171 * ---
7272 *
73− * The correspoding sequence of tokens:
73+ * The corresponding sequence of tokens:
7474 *
7575 * STREAM-START(utf-8)
7676 * VERSION-DIRECTIVE(1,1)
@@ -762,7 +762,7 @@ yaml_parser_scan(yaml_parser_t *parser, yaml_token_t *token)
762762 }
763763
764764 /* Fetch the next token from the queue. */
765−
765+
766766 *token = DEQUEUE(parser, parser->tokens);
767767 parser->token_available = 0;
768768 parser->tokens_parsed ++;
@@ -1114,7 +1114,7 @@ yaml_parser_save_simple_key(yaml_parser_t *parser)
11141114 yaml_simple_key_t simple_key;
11151115 simple_key.possible = 1;
11161116 simple_key.required = required;
1117− simple_key.token_number =
1117+ simple_key.token_number =
11181118 parser->tokens_parsed + (parser->tokens.tail - parser->tokens.head);
11191119 simple_key.mark = parser->mark;
11201120
@@ -1200,7 +1200,7 @@ yaml_parser_decrease_flow_level(yaml_parser_t *parser)
12001200 * Push the current indentation level to the stack and set the new level
12011201 * the current column is greater than the indentation level. In this case,
12021202 * append or insert the specified token into the token queue.
1203− *
1203+ *
12041204 */
12051205
12061206static int
@@ -1251,7 +1251,7 @@ yaml_parser_roll_indent(yaml_parser_t *parser, ptrdiff_t column,
12511251
12521252/*
12531253 * 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
12551255 * the BLOCK-END token.
12561256 */
12571257
@@ -1266,7 +1266,7 @@ yaml_parser_unroll_indent(yaml_parser_t *parser, ptrdiff_t column)
12661266 if (parser->flow_level)
12671267 return 1;
12681268
1269− /* Loop through the intendation levels in the stack. */
1269+ /* Loop through the indentation levels in the stack. */
12701270
12711271 while (parser->indent > column)
12721272 {
@@ -1938,7 +1938,7 @@ yaml_parser_scan_to_next_token(yaml_parser_t *parser)
19381938 *
19391939 * - in the flow context;
19401940 * - in the block context, but not at the beginning of the line or
1941− * after '-', '?', or ':' (complex value).
1941+ * after '-', '?', or ':' (complex value).
19421942 */
19431943
19441944 if (!CACHE(parser, 1)) return 0;
@@ -2053,7 +2053,7 @@ yaml_parser_scan_directive(yaml_parser_t *parser, yaml_token_t *token)
20532053 else
20542054 {
20552055 yaml_parser_set_scanner_error(parser, "while scanning a directive",
2056− start_mark, "found uknown directive name");
2056+ start_mark, "found unknown directive name");
20572057 goto error;
20582058 }
20592059
@@ -2775,15 +2775,15 @@ yaml_parser_scan_block_scalar(yaml_parser_t *parser, yaml_token_t *token,
27752775
27762776 if (IS_DIGIT(parser->buffer))
27772777 {
2778− /* Check that the intendation is greater than 0. */
2778+ /* Check that the indentation is greater than 0. */
27792779
27802780 if (CHECK(parser->buffer, '0')) {
27812781 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");
27832783 goto error;
27842784 }
27852785
2786− /* Get the intendation level and eat the indicator. */
2786+ /* Get the indentation level and eat the indicator. */
27872787
27882788 increment = AS_DIGIT(parser->buffer);
27892789
@@ -2797,7 +2797,7 @@ yaml_parser_scan_block_scalar(yaml_parser_t *parser, yaml_token_t *token,
27972797 {
27982798 if (CHECK(parser->buffer, '0')) {
27992799 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");
28012801 goto error;
28022802 }
28032803
@@ -2847,7 +2847,7 @@ yaml_parser_scan_block_scalar(yaml_parser_t *parser, yaml_token_t *token,
28472847
28482848 end_mark = parser->mark;
28492849
2850− /* Set the intendation level if it was specified. */
2850+ /* Set the indentation level if it was specified. */
28512851
28522852 if (increment) {
28532853 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,
29132913
29142914 if (!READ_LINE(parser, leading_break)) goto error;
29152915
2916− /* Eat the following intendation spaces and line breaks. */
2916+ /* Eat the following indentation spaces and line breaks. */
29172917
29182918 if (!yaml_parser_scan_block_scalar_breaks(parser,
29192919 &indent, &trailing_breaks, start_mark, &end_mark)) goto error;
@@ -2948,8 +2948,8 @@ error:
29482948}
29492949
29502950/*
2951− * Scan intendation spaces and line breaks for a block scalar. Determine the
2952− * intendation level if needed.
2951+ * Scan indentation spaces and line breaks for a block scalar. Determine the
2952+ * indentation level if needed.
29532953 */
29542954
29552955static int
@@ -2961,11 +2961,11 @@ yaml_parser_scan_block_scalar_breaks(yaml_parser_t *parser,
29612961
29622962 *end_mark = parser->mark;
29632963
2964− /* Eat the intendation spaces and line breaks. */
2964+ /* Eat the indentation spaces and line breaks. */
29652965
29662966 while (1)
29672967 {
2968− /* Eat the intendation spaces. */
2968+ /* Eat the indentation spaces. */
29692969
29702970 if (!CACHE(parser, 1)) return 0;
29712971
@@ -2978,12 +2978,12 @@ yaml_parser_scan_block_scalar_breaks(yaml_parser_t *parser,
29782978 if ((int)parser->mark.column > max_indent)
29792979 max_indent = (int)parser->mark.column;
29802980
2981− /* Check for a tab character messing the intendation. */
2981+ /* Check for a tab character messing the indentation. */
29822982
29832983 if ((!*indent || (int)parser->mark.column < *indent)
29842984 && IS_TAB(parser->buffer)) {
29852985 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");
29872987 }
29882988
29892989 /* Have we found a non-empty line? */
@@ -3007,7 +3007,7 @@ yaml_parser_scan_block_scalar_breaks(yaml_parser_t *parser,
30073007 *indent = 1;
30083008 }
30093009
3010− return 1;
3010+ return 1;
30113011}
30123012
30133013/*
@@ -3162,6 +3162,10 @@ yaml_parser_scan_flow_scalar(yaml_parser_t *parser, yaml_token_t *token,
31623162 *(string.pointer++) = '"';
31633163 break;
31643164
3165+ case '/':
3166+ *(string.pointer++) = '/';
3167+ break;
3168+
31653169 case '\'':
31663170 *(string.pointer++) = '\'';
31673171 break;
@@ -3504,12 +3508,12 @@ yaml_parser_scan_plain_scalar(yaml_parser_t *parser, yaml_token_t *token)
35043508 {
35053509 if (IS_BLANK(parser->buffer))
35063510 {
3507− /* Check for tab character that abuse intendation. */
3511+ /* Check for tab character that abuse indentation. */
35083512
35093513 if (leading_blanks && (int)parser->mark.column < indent
35103514 && IS_TAB(parser->buffer)) {
35113515 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");
35133517 goto error;
35143518 }
35153519
@@ -3542,7 +3546,7 @@ yaml_parser_scan_plain_scalar(yaml_parser_t *parser, yaml_token_t *token)
35423546 if (!CACHE(parser, 1)) goto error;
35433547 }
35443548
3545− /* Check intendation level. */
3549+ /* Check indentation level. */
35463550
35473551 if (!parser->flow_level && (int)parser->mark.column < indent)
35483552 break;
@@ -3573,4 +3577,3 @@ error:
35733577
35743578 return 0;
35753579}
3576−