Commit 2d656f46 by Seldaek

* Fixes {foo()->bar}

git-svn-id: svn://dwoo.org/dwoo/trunk@134 0598d79b-80c4-4d41-97ba-ac86fbbd088b
parent e140364f
......@@ -1192,7 +1192,7 @@ class Dwoo_Compiler implements Dwoo_ICompiler
}
}
if (isset($parsed) && $parsed==='func' && preg_match('#^->[a-z0-9_]+\s*\(.+#s', $substr, $match)) {
if (isset($parsed) && $parsed==='func' && preg_match('#^->[a-z0-9_]+(\s*\(.+)?#s', $substr, $match)) {
$ptr = 0;
if (is_array($parsingParams)) {
......
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