(pred func(rune) bool)
| 41 | } |
| 42 | |
| 43 | func (l *lexer) acceptRun(pred func(rune) bool) string { |
| 44 | for pred(l.next()) { |
| 45 | } |
| 46 | l.backup() |
| 47 | return l.emit() |
| 48 | } |
| 49 | |
| 50 | func (l *lexer) next() (rune rune) { |
| 51 | if l.pos >= len(l.input) { |
no test coverage detected