fixing merge issue for blade comments pull
This commit is contained in:
commit
2611c1f27a
|
@ -186,9 +186,9 @@ protected static function extract($value, $expression)
|
||||||
*/
|
*/
|
||||||
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 @@ #### Blade comments:
|
||||||
{{-- 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.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue