scanIgnoreWhitespace scans the next non-whitespace token.
()
| 196 | |
| 197 | // scanIgnoreWhitespace scans the next non-whitespace token. |
| 198 | func (p *Parser) scanIgnoreWhitespace() (tok Token, lit string) { |
| 199 | tok, lit = p.scan() |
| 200 | if tok == WS { |
| 201 | tok, lit = p.scan() |
| 202 | } |
| 203 | return tok, lit |
| 204 | } |
| 205 | |
| 206 | // unscan pushes the previously read tokens back onto the buffer. |
| 207 | func (p *Parser) unscan(tok TokenInfo) { |