Originally Posted By: tfabris
It stops at the first closing curlybrace it finds.


Does it really? The caret (^) in front of the curly brace means "find a clsing curly brace that is the first character of a line".

So unless the function has other non-indented closing curly braces, it should work as intended.

Doesn't it?