Tells the lexer to skip input tokens until it sees a token with the given value.
string $type The token type to skip until.:
public function skipUntil($type) {
while ($this->lookahead !== null && $this->lookahead['type'] !== $type) {
$this
->moveNext();
}
}