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

Breadcrumb

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

function Lexer::lexVar

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

File

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

Class

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

Namespace

Twig

Code

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