Latte\Parser::setSyntax PHP Method

setSyntax() public method

Changes macro tag delimiters.
public setSyntax ( $type ) : static
return static
    public function setSyntax($type)
    {
        $type = $type ?: $this->defaultSyntax;
        if (isset($this->syntaxes[$type])) {
            $this->setDelimiters($this->syntaxes[$type][0], $this->syntaxes[$type][1]);
        } else {
            throw new \InvalidArgumentException("Unknown syntax '{$type}'");
        }
        return $this;
    }