Changeset 250
- Timestamp:
- 04/17/07 13:39:54 (5 years ago)
- Files:
-
- 1 modified
-
libyaml/trunk/src/parser.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libyaml/trunk/src/parser.c
r243 r250 353 353 if (!token) return 0; 354 354 355 /* Parse extra document end indicators. */ 356 357 if (!implicit) 358 { 359 while (token->type == YAML_DOCUMENT_END_TOKEN) { 360 SKIP_TOKEN(parser); 361 token = PEEK_TOKEN(parser); 362 if (!token) return 0; 363 } 364 } 365 355 366 /* Parse an implicit document. */ 356 367 … … 468 479 start_mark = end_mark = token->start_mark; 469 480 470 while(token->type == YAML_DOCUMENT_END_TOKEN) {481 if (token->type == YAML_DOCUMENT_END_TOKEN) { 471 482 end_mark = token->end_mark; 472 483 SKIP_TOKEN(parser); 473 token = PEEK_TOKEN(parser);474 if (!token) return 0;475 484 implicit = 0; 476 485 }
