Latte\Parser::contextHtmlComment PHP Method

contextHtmlComment() private method

Handles CONTEXT_HTML_COMMENT.
private contextHtmlComment ( )
    private function contextHtmlComment()
    {
        $matches = $this->match('~
			(?P<htmlcomment>' . $this->context[1] . '>)|   ##  end of HTML comment
			(?P<macro>' . $this->delimiters[0] . ')
		~xsi');
        if (!empty($matches['htmlcomment'])) {
            // -->
            $this->addToken(Token::HTML_TAG_END, $matches[0]);
            $this->setContext(self::CONTEXT_HTML_TEXT);
        } else {
            return $this->processMacro($matches);
        }
    }