Commit 6cb2ddad authored by Tobsn's avatar Tobsn

multiline echo and comments

for issue #647
parent a04f38c2
...@@ -186,9 +186,9 @@ class Blade { ...@@ -186,9 +186,9 @@ class Blade {
*/ */
protected static function compile_comments($value) protected static function compile_comments($value)
{ {
$value = preg_replace('/\{\{--(.+?)(--\}\})?\n/', "<?php // $1 ?>", $value); $value = preg_replace('/\{\{--(.+?)(--\}\})?\n/s', "<?php // $1 ?>", $value);
return preg_replace('/\{\{--((.|\s)*?)--\}\}/', "<?php /* $1 */ ?>\n", $value); return preg_replace('/\{\{--((.|\s)*?)--\}\}/s', "<?php /* $1 */ ?>\n", $value);
} }
/** /**
...@@ -199,7 +199,7 @@ class Blade { ...@@ -199,7 +199,7 @@ class Blade {
*/ */
protected static function compile_echos($value) protected static function compile_echos($value)
{ {
return preg_replace('/\{\{(.+?)\}\}/', '<?php echo $1; ?>', $value); return preg_replace('/\{\{(.+?)\}\}/s', '<?php echo $1; ?>', $value);
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment