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

View File

@@ -273,7 +273,7 @@ class Blade {
*/
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);
}