AcceptRun accepts runes until encountering a rune not in the set of valid runes provided
(valid string)
| 163 | // AcceptRun accepts runes until encountering a rune not |
| 164 | // in the set of valid runes provided |
| 165 | func (s *stringLexer) AcceptRun(valid string) { |
| 166 | for strings.ContainsRune(valid, s.Next()) { |
| 167 | } |
| 168 | s.Backup() |
| 169 | } |
| 170 | |
| 171 | // String returns the unescaped representation of the input |
| 172 | // that has been lexed so far. Usually it would only be |
no test coverage detected