(bs []byte)
| 147 | } |
| 148 | |
| 149 | func (l *lexer) accept(bs []byte) (c int) { |
| 150 | for { |
| 151 | n := l.next() |
| 152 | |
| 153 | found := false |
| 154 | for _, b := range bs { |
| 155 | if b == n { |
| 156 | found = true |
| 157 | break |
| 158 | } |
| 159 | } |
| 160 | |
| 161 | if !found { |
| 162 | l.rewind() |
| 163 | return c |
| 164 | } |
| 165 | c++ |
| 166 | } |
| 167 | } |
| 168 | |
| 169 | func (l *lexer) until(b byte) bool { |
| 170 | for { |
no test coverage detected