Added an @break to blade to break out of loops.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
This commit is contained in:
Jason Lewis 2012-06-19 01:58:14 +09:30
parent 681f80eafb
commit b6cc836bf4
1 changed files with 1 additions and 1 deletions

View File

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