emit passes an item back to the client.
(t itemType)
| 133 | |
| 134 | // emit passes an item back to the client. |
| 135 | func (l *lexer) emit(t itemType) { |
| 136 | l.items <- item{t, l.start, l.current()} |
| 137 | l.start = l.pos |
| 138 | } |
| 139 | |
| 140 | // ignore skips over the pending input before this point. |
| 141 | func (l *lexer) ignore() { |
no test coverage detected