added break function to closing structure

This commit is contained in:
Tobias Orterer 2012-06-21 00:09:08 -07:00
parent ddee5b7199
commit be264ab181
1 changed files with 1 additions and 1 deletions

View File

@ -273,7 +273,7 @@ protected static function compile_structure_openings($value)
*/
protected static function compile_structure_closings($value)
{
$pattern = '/@(endif|endforeach|endfor|endwhile)/';
$pattern = '/@(endif|endforeach|endfor|endwhile|break)/';
return preg_replace($pattern, '<?php $1; ?>', $value);
}