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