acceptRun continually accepts runes from the set of valid runes
(valid string)
| 120 | // acceptRun continually accepts runes from the |
| 121 | // set of valid runes |
| 122 | func (l *lexer) acceptRun(valid string) { |
| 123 | for strings.ContainsRune(valid, l.next()) { |
| 124 | } |
| 125 | l.backup() |
| 126 | } |
| 127 | |
| 128 | // a runeCheck is a function that determines if a rune is valid |
| 129 | // or not so that we can do complex checks against runes |