@@ -1917,7 +1946,7 @@ class Dwoo_Compiler implements Dwoo_ICompiler
thrownewDwoo_Compilation_Exception($this,'Invalid expression <em>'.$substr.'</em>, can not use "==" in expressions');
}
if($curBlock!=='root'){
thrownewDwoo_Compilation_Exception($this,'Invalid expression <em>'.$substr.'</em>, "=" can only be used in pure expressions like {$foo+=3}, {$foo="bar"}');
thrownewDwoo_Compilation_Exception($this,'Invalid expression <em>'.$substr.'</em>, assignments can only be used in top level expressions like {$foo+=3} or {$foo="bar"}');
}
$operator.='=';
$expMatch[2][$k]=substr($expMatch[2][$k],1);
...
...
@@ -1940,30 +1969,6 @@ class Dwoo_Compiler implements Dwoo_ICompiler
thrownewDwoo_Compilation_Exception($this,'Unfinished expression <em>'.$substr.'</em>, missing var or number after math operator');