(valid string)
| 143 | } |
| 144 | |
| 145 | func (l *Lexer) accept(valid string) bool { |
| 146 | if strings.ContainsRune(valid, l.peek()) { |
| 147 | l.next() |
| 148 | return true |
| 149 | } |
| 150 | return false |
| 151 | } |
| 152 | |
| 153 | func (l *Lexer) acceptRun(valid string) { |
| 154 | for l.accept(valid) { |
no test coverage detected