Commit a6a50002 by Seldaek

* Fixed parameter parsing issue when a plugin name was all uppercased

git-svn-id: svn://dwoo.org/dwoo/trunk@239 0598d79b-80c4-4d41-97ba-ac86fbbd088b
parent ea8e8d54
......@@ -7,6 +7,7 @@
* 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
* Fixed parameter parsing issue when a plugin name was all uppercased
[2008-12-24] 1.0.1
* Direct assignments like {$foo = 5} now allow spaces around the operator
......
......@@ -1494,7 +1494,7 @@ class Dwoo_Compiler implements Dwoo_ICompiler
if (is_array($parsingParams) || $curBlock != 'root') {
$paramspos = strpos($cmdstr, '(');
$paramsep = ')';
} elseif(preg_match_all('#[a-z0-9_]+(\s*\(|\s+[^(])#', $cmdstr, $match, PREG_OFFSET_CAPTURE)) {
} elseif(preg_match_all('#[a-z0-9_]+(\s*\(|\s+[^(])#i', $cmdstr, $match, PREG_OFFSET_CAPTURE)) {
$paramspos = $match[1][0][1];
$paramsep = substr($match[1][0][0], -1) === '(' ? ')':'';
if($paramsep === ')') {
......
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