(parser *yaml_parser_t)
| 521 | } |
| 522 | |
| 523 | func skip_line(parser *yaml_parser_t) { |
| 524 | if is_crlf(parser.buffer, parser.buffer_pos) { |
| 525 | parser.mark.index += 2 |
| 526 | parser.mark.column = 0 |
| 527 | parser.mark.line++ |
| 528 | parser.unread -= 2 |
| 529 | parser.buffer_pos += 2 |
| 530 | parser.newlines++ |
| 531 | } else if is_break(parser.buffer, parser.buffer_pos) { |
| 532 | parser.mark.index++ |
| 533 | parser.mark.column = 0 |
| 534 | parser.mark.line++ |
| 535 | parser.unread-- |
| 536 | parser.buffer_pos += width(parser.buffer[parser.buffer_pos]) |
| 537 | parser.newlines++ |
| 538 | } |
| 539 | } |
| 540 | |
| 541 | // Copy a character to a string buffer and advance pointers. |
| 542 | func read(parser *yaml_parser_t, s []byte) []byte { |
no test coverage detected