Commit 351e871f by Jordi Boggiano

Add support for namespaced constants, fixes #9

parent d3caa8b3
......@@ -2006,7 +2006,7 @@ class Dwoo_Compiler implements Dwoo_ICompiler
echo 'CONST FOUND : '.$substr.'<br />';
}
if (!preg_match('#^%([a-z0-9_:]+)#i', $substr, $m)) {
if (!preg_match('#^%([\\\\a-z0-9_:]+)#i', $substr, $m)) {
throw new Dwoo_Compilation_Exception($this, 'Invalid constant');
}
......
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