Browse Source

fixing merge issue for blade comments pull

Dayle Rees 12 years ago
parent
commit
2611c1f27a
2 changed files with 9 additions and 3 deletions
  1. 3 3
      laravel/blade.php
  2. 6 0
      laravel/documentation/views/templating.md

+ 3 - 3
laravel/blade.php

@@ -186,9 +186,9 @@ class Blade {
 	 */
 	protected static function compile_comments($value)
 	{
-		$value = preg_replace('/\{\{--(.+?)(--\}\})?\n/s', "<?php // $1 ?>", $value);
-
-		return preg_replace('/\{\{--((.|\s)*?)--\}\}/s', "<?php /* $1 */ ?>\n", $value);
+		$value = preg_replace('/\{\{--(.*?)--\}\}/', "<?php // $1 ?>", $value);
+		
+		return preg_replace('/\{\{--(.*?)--\}\}/s', "<?php /* ?>$1<?php */ ?>", $value);
 	}
 
 	/**

+ 6 - 0
laravel/documentation/views/templating.md

@@ -132,6 +132,12 @@ Similarly, you can use **@render**, which behaves the same as **@include** excep
 		{{-- This is a comment --}}
 		...
 	@endif
+	
+	{{--
+		This is
+		a multi-line
+		comment.
+	--}}
 
 > **Note:** Blade comments, unlike HTML comments, are not visible in the HTML source.