fixing merge issue for blade comments pull

This commit is contained in:
Dayle Rees 2012-07-31 14:42:23 +01:00
commit 2611c1f27a
2 changed files with 9 additions and 3 deletions

View File

@ -186,9 +186,9 @@ protected static function extract($value, $expression)
*/
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);
}
/**

View File

@ -132,6 +132,12 @@ #### Blade comments:
{{-- This is a comment --}}
...
@endif
{{--
This is
a multi-line
comment.
--}}
> **Note:** Blade comments, unlike HTML comments, are not visible in the HTML source.