Commit ea8e8d54 by Seldaek

git-svn-id: svn://dwoo.org/dwoo/trunk@238 0598d79b-80c4-4d41-97ba-ac86fbbd088b

parent 7d4083db
......@@ -6,6 +6,7 @@
that resulted, but I didn't really keep track of them
* Fixed a bug with parsing AND/OR keywords in conditionals when they were
followed by round brackets
* Fixed assignments not handling multi-line values correctly
[2008-12-24] 1.0.1
* Direct assignments like {$foo = 5} now allow spaces around the operator
......
......@@ -1392,7 +1392,7 @@ class Dwoo_Compiler implements Dwoo_ICompiler
$out .= $match[1] . $expr;
}
}
} else if ($curBlock === 'root' && preg_match('#^(\s*(?:[+/*%-]=|=|\+\+|--)\s*)(.*)#', $substr, $match)) {
} else if ($curBlock === 'root' && preg_match('#^(\s*(?:[+/*%-]=|=|\+\+|--)\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