Latte\Parser::contextHtmlAttribute PHP Method

contextHtmlAttribute() private method

Handles CONTEXT_HTML_ATTRIBUTE.
private contextHtmlAttribute ( )
    private function contextHtmlAttribute()
    {
        $matches = $this->match('~
			(?P<quote>' . $this->context[1] . ')|  ##  end of HTML attribute
			(?P<macro>' . $this->delimiters[0] . ')
		~xsi');
        if (!empty($matches['quote'])) {
            // (attribute end) '"
            $this->addToken(Token::HTML_ATTRIBUTE_END, $matches[0]);
            $this->setContext(self::CONTEXT_HTML_TAG);
        } else {
            return $this->processMacro($matches);
        }
    }