MCPcopy
hub / github.com/go-yaml/yaml / skip

Function skip

scannerc.go:513–521  ·  scannerc.go::skip

Advance the buffer pointer.

(parser *yaml_parser_t)

Source from the content-addressed store, hash-verified

511
512// Advance the buffer pointer.
513func skip(parser *yaml_parser_t) {
514 if !is_blank(parser.buffer, parser.buffer_pos) {
515 parser.newlines = 0
516 }
517 parser.mark.index++
518 parser.mark.column++
519 parser.unread--
520 parser.buffer_pos += width(parser.buffer[parser.buffer_pos])
521}
522
523func skip_line(parser *yaml_parser_t) {
524 if is_crlf(parser.buffer, parser.buffer_pos) {

Calls 2

is_blankFunction · 0.85
widthFunction · 0.85

Tested by

no test coverage detected