()
| 723 | } |
| 724 | |
| 725 | func (t *Tokenizer) skipToNewLine() { |
| 726 | r := t.char(0) |
| 727 | for r != '\n' { |
| 728 | if r == eofRune { |
| 729 | return |
| 730 | } |
| 731 | t.skip(1) |
| 732 | r = t.char(0) |
| 733 | } |
| 734 | t.line++ |
| 735 | t.skip(1) |
| 736 | } |
| 737 | |
| 738 | // getColumn returns the 1-based column position of the current cursor. |
| 739 | // Per the proto spec, the first character of a line is column 1. |
no test coverage detected