Commit e3fa9c52 by Thomas Bachem

Fixed use of multiple modifiers in combination with method calls

parent 137ced89
......@@ -1523,7 +1523,7 @@ class Dwoo_Compiler implements Dwoo_ICompiler
}
}
if ($curBlock !== 'modifier' && ($parsed === 'func' || $parsed === 'var') && preg_match('#^\|@?[a-z0-9_]+(:.*)?#i', $substr, $match)) {
if ($curBlock !== 'modifier' && ($parsed === 'func' || $parsed === 'var') && preg_match('#^(\|@?[a-z0-9_]+(:.*)?)+#i', $substr, $match)) {
// parse modifier on funcs or vars
$srcPointer = $pointer;
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