fixing merge issue for blade comments pull
This commit is contained in:
@@ -186,9 +186,9 @@ class Blade {
|
|||||||
*/
|
*/
|
||||||
protected static function compile_comments($value)
|
protected static function compile_comments($value)
|
||||||
{
|
{
|
||||||
$value = preg_replace('/\{\{--(.+?)(--\}\})?\n/s', "<?php // $1 ?>", $value);
|
$value = preg_replace('/\{\{--(.*?)--\}\}/', "<?php // $1 ?>", $value);
|
||||||
|
|
||||||
return preg_replace('/\{\{--((.|\s)*?)--\}\}/s', "<?php /* $1 */ ?>\n", $value);
|
return preg_replace('/\{\{--(.*?)--\}\}/s', "<?php /* ?>$1<?php */ ?>", $value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -132,6 +132,12 @@ Similarly, you can use **@render**, which behaves the same as **@include** excep
|
|||||||
{{-- This is a comment --}}
|
{{-- This is a comment --}}
|
||||||
...
|
...
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
{{--
|
||||||
|
This is
|
||||||
|
a multi-line
|
||||||
|
comment.
|
||||||
|
--}}
|
||||||
|
|
||||||
> **Note:** Blade comments, unlike HTML comments, are not visible in the HTML source.
|
> **Note:** Blade comments, unlike HTML comments, are not visible in the HTML source.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user