else {$this->_syntax_error('Unknown scope "'.$type.'" for variable "'.$name.'"');}
}
public function _syntax_error($msg)
{
$error = 'Quicky syntax error '.$msg.' in template '.$this->template_from.' on line '.$this->_line[$this->template_from];
if ($this->_line_count[$this->template_from] > 0) {$error .= ' (starts at line '.($this->_line[$this->template_from]-$this->_line_count[$this->template_from]).')';}