Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Lexer.php

function Lexer::lexBlock

1 call to Lexer::lexBlock()
Lexer::tokenize in vendor/twig/twig/src/Lexer.php

File

vendor/twig/twig/src/Lexer.php, line 294

Class

Lexer
@author Fabien Potencier <fabien@symfony.com>

Namespace

Twig

Code

private function lexBlock() : void {
    if (!$this->brackets && preg_match($this->regexes['lex_block'], $this->code, $match, 0, $this->cursor)) {
        $this->pushToken(Token::BLOCK_END_TYPE);
        $this->moveCursor($match[0]);
        $this->popState();
    }
    else {
        $this->lexExpression();
    }
}
RSS feed
Powered by Drupal