scanIgnoreWhitespace scans the next non-whitespace token.
()
| 557 | |
| 558 | // scanIgnoreWhitespace scans the next non-whitespace token. |
| 559 | func (p *Parser) scanIgnoreWhitespace() (tok Token, pos Pos, lit string) { |
| 560 | tok, pos, lit = p.scan() |
| 561 | if tok == WS { |
| 562 | tok, pos, lit = p.scan() |
| 563 | } |
| 564 | return |
| 565 | } |
| 566 | |
| 567 | // consumeWhitespace scans the next token if it's whitespace. |
| 568 | func (p *Parser) consumeWhitespace() { |
no test coverage detected