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

Breadcrumb

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

function Lexer::lexInterpolation

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

File

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

Class

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

Namespace

Twig

Code

private function lexInterpolation() : void {
    $bracket = end($this->brackets);
    if ($this->options['interpolation'][0] === $bracket[0] && preg_match($this->regexes['interpolation_end'], $this->code, $match, 0, $this->cursor)) {
        array_pop($this->brackets);
        $this->pushToken(Token::INTERPOLATION_END_TYPE);
        $this->moveCursor($match[0]);
        $this->popState();
    }
    else {
        $this->lexExpression();
    }
}
RSS feed
Powered by Drupal