MCPcopy Create free account
hub / github.com/bytebase/bytebase / skipBlank

Method skipBlank

backend/plugin/parser/tokenizer/tokenizer.go:705–714  ·  view source on GitHub ↗

skipBlank skips the cursor to the first non-blank rune.

()

Source from the content-addressed store, hash-verified

703
704// skipBlank skips the cursor to the first non-blank rune.
705func (t *Tokenizer) skipBlank() {
706 r := t.char(0)
707 for unicode.IsSpace(r) {
708 t.skip(1)
709 if r == '\n' {
710 t.line++
711 }
712 r = t.char(0)
713 }
714}
715
716// skipToBlank skips the cursor to the first blank rune.
717func (t *Tokenizer) skipToBlank() {

Calls 2

charMethod · 0.95
skipMethod · 0.95

Tested by

no test coverage detected