skipBlank skips the cursor to the first non-blank rune.
()
| 703 | |
| 704 | // skipBlank skips the cursor to the first non-blank rune. |
| 705 | func (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. |
| 717 | func (t *Tokenizer) skipToBlank() { |
no test coverage detected