public function Lexer::skipUntil

Tells the lexer to skip input tokens until it sees a token with the given value.

Parameters

string $type The token type to skip until.:

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Lexer.php, line 150

Class

Lexer
Base class for writing simple lexers, i.e. for creating small DSLs.

Namespace

Doctrine\Common

Code

public function skipUntil($type) {
  while ($this->lookahead !== null && $this->lookahead['type'] !== $type) {
    $this
      ->moveNext();
  }
}