Fix <!-- SET --> .. <!-- END -->

databind
vitalif 2013-04-20 11:12:35 +00:00 committed by Vitaliy Filippov
parent cccfb8da71
commit 8a84e42624
2 changed files with 5 additions and 5 deletions

View File

@ -115,7 +115,7 @@ c_set = "SET" varref/v "=" exp/e {
$$ = $v . ' = ' . $e . ";\n";
}
| "SET" varref/v "-->" chunks/cs "<!--" "END" {
$$ = "\$stack[] = \$t;\n\$t = '';\n" . $cs . $v . " = \$t;\narray_pop(\$stack);\n";
$$ = "\$stack[] = \$t;\n\$t = '';\n" . $cs . $v . " = \$t;\n\$t = array_pop(\$stack);\n";
}
.
c_fn = fn name/name "(" arglist/args ")" "=" exp/exp {

View File

@ -373,7 +373,7 @@ class VMXTemplate
{
$md5 = md5($code);
$file = $this->options->cache_dir . 'tpl' . $md5 . '.php';
if (0 && file_exists($file) && !$reload)
if (file_exists($file) && !$reload)
{
return $file;
}
@ -4159,7 +4159,7 @@ class VMXTemplateParser extends lime_parser {
$v = &$tokens[1];
$cs = &$tokens[3];
$result = "\$stack[] = \$t;\n\$t = '';\n" . $cs . $v . " = \$t;\narray_pop(\$stack);\n";
$result = "\$stack[] = \$t;\n\$t = '';\n" . $cs . $v . " = \$t;\n\$t = array_pop(\$stack);\n";
}
function reduce_20_c_fn_1($tokens, &$result) {
@ -5226,5 +5226,5 @@ class VMXTemplateParser extends lime_parser {
);
}
// Time: 1,91961789131 seconds
// Memory: 11190620 bytes
// Time: 3,58776307106 seconds
// Memory: 11194096 bytes