laravel/framework — pull request #4693 by frankiethekneeman (2014-06-12 21:17:48+00:00)
Title: Blade matchers need parenthetical awareness.

Blade matchers need parenthetical depth awareness - greedy matching with .* leads to unwanted matches.

IE:

@extension($arg, $otherArg, ")", ) ng-src="getSource(someVar);"

Fails to match what is logically the extension - it matches

($arg, $otherArg, ")", ) ng-src="getSource(someVar)

Which causes view failure.

See: http://ideone.com/YmVtpK

For proof of concept.