(valid string)
| 27 | } |
| 28 | |
| 29 | func (l *lexer) accept(valid string) bool { |
| 30 | if strings.IndexRune(valid, l.next()) >= 0 { |
| 31 | l.emit() |
| 32 | return true |
| 33 | } |
| 34 | l.backup() |
| 35 | return false |
| 36 | } |
| 37 | |
| 38 | func (l *lexer) acceptAny() string { |
| 39 | l.next() |
no test coverage detected