Ignore moves the start position pointer to the current position without emitting a token; effectively ignoring the chunk of text between the last token we emitted and now.
()
| 127 | // position without emitting a token; effectively ignoring |
| 128 | // the chunk of text between the last token we emitted and now. |
| 129 | func (s *stringLexer) Ignore() { |
| 130 | s.start = s.pos |
| 131 | } |
| 132 | |
| 133 | // Accept advances the position pointer only if the next rune |
| 134 | // is in the set of valid runes provided |