Browse Source

added break function to closing structure

Tobias Orterer 12 years ago
parent
commit
be264ab181
1 changed files with 1 additions and 1 deletions
  1. 1 1
      laravel/blade.php

+ 1 - 1
laravel/blade.php

@@ -273,7 +273,7 @@ class Blade {
 	 */
 	 */
 	protected static function compile_structure_closings($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);
 		return preg_replace($pattern, '<?php $1; ?>', $value);
 	}
 	}