Commit 65226f3e by Seldaek

Fixes regression from r220

git-svn-id: svn://dwoo.org/dwoo/trunk@223 0598d79b-80c4-4d41-97ba-ac86fbbd088b
parent dd2caf81
......@@ -1295,7 +1295,7 @@ class Dwoo_Compiler implements Dwoo_ICompiler
$out .= $match[1] . $this->parseOthers($in, $pointer, $to, false, 'expression', $pointer);
}
}
} else if ($curBlock === 'root' && preg_match('#^(\s*[+/*%=-]{1,2}\s*)(.*)#', $substr, $match)) {
} else if ($curBlock === 'root' && preg_match('#^(\s*(?:[+/*%-]=|=|\+\+|--)\s*)(.*)#', $substr, $match)) {
if($this->debug) echo 'PARSING POST-VAR ASSIGNMENT '.$substr.'<br />';
// parse assignment
$value = $match[2];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment