Im trying to add code folding regular expressions for a templating language I use 

Even if I pare it back to the most basic of examples, I cant seem to get it working..

{if (true)}
    {foo}
{/if}

foldingStartMarker = '^\{if\}';
foldingStopMarker = '^\{\\if\}';

If I omit the closing } from the first line of code...

{if (true)

Then TM does show the code folding marker (odd since the regexp should require it?), but either way the code still doesn't fold 

What am I missing?

Thanks