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;
}