protected function compileComments($value)
    {
        // comment with < %-- --% > or {{-- --}}

        $pattern = sprintf('/%s#((.|\s)*?)%s/', $this->contentTags[0], $this->contentTags[1]);

        $value = preg_replace($pattern, '<?php /* $1 */ ?>', $value);

        $pattern = sprintf('/%s--((.|\s)*?)--%s/', '{{', '}}');

        $value = preg_replace($pattern, '<?php /* $1 */ ?>', $value);

        return $value;
    }
protected function compileComments($value)
    {
        // comment with < %-- --% > or {{-- --}}

        $pattern = sprintf('/%s#((.|\s)*?)%s/', $this->contentTags[0], $this->contentTags[1]);

        $value = preg_replace($pattern, '<?php /* $1 */ ?>', $value);

        $pattern = sprintf('/%s--((.|\s)*?)--%s/', '{{', '}}');

        $value = preg_replace($pattern, '<?php /* $1 */ ?>', $value);

        return $value;
    }
protected function compileComments ( $ value ) { // comment with < %-- --% > or {{-- --}} $ pattern = sprintf ( '/%s#((.|\s)*?)%s/' , $ this -> contentTags [ 0 ] , $ this -> contentTags [ 1 ] ) ; $ value = preg_replace ( $ pattern , '<?php /* $1 */ ?>' , $ value ) ; $ pattern = sprintf ( '/%s--((.|\s)*?)--%s/' , '{{' , '}}' ) ; $ value = preg_replace ( $ pattern , '<?php /* $1 */ ?>' , $ value ) ; return $ value ; }
Compile Tpl comments into valid PHP.

@param  string  $value
@return string
Compile Tpl comments into valid PHP .