laravel/framework — pull request #5662 by RyanNielson (2014-09-05 12:48:24+00:00)
Title: Fix nested inline if parsing

This should fix the issue in #5661 as reported by @frankmichel, and all tests still pass. I'm not sure if the \B was added to the regex for any particular reason, but if it was just ignore this.

Now lines like `@if ($foo)@endif` will be correctly compiled into `` whereas previously it was compiled into ``