laravel/laravel — pull request #1376 by tzan (2012-10-22 12:13:00+00:00)
Title: [Bug] blade inline statements

Each time i'm trying to add 2 statements in the same line of a blade template file i had a error.
Example:
//application/views/home/index.blade.php

@yield('test') {{ path('app') }}

This Exception occur:

Unhandled Exception

Message:

syntax error, unexpected '?'
Location:

MY_FILE_PATH(366) : eval()'d code on line 35

in the generate view the result is:
; ?>

the end tag ?> is in the wrong place

I have solved this issue like this by replacing the regex:
//laravel/blade.php l.438

return '/(\s*)@'.$function.'(\s*\([^)]+\))/';