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)
|
||||
{
|
||||
$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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -133,6 +133,12 @@ #### Blade comments:
|
|||
...
|
||||
@endif
|
||||
|
||||
{{--
|
||||
This is
|
||||
a multi-line
|
||||
comment.
|
||||
--}}
|
||||
|
||||
> **Note:** Blade comments, unlike HTML comments, are not visible in the HTML source.
|
||||
|
||||
<a name="blade-layouts"></a>
|
||||
|
|
Loading…
Reference in New Issue