[TxMt] Code folding regexp

Carpii UK carpii.uk at gmail.com
Wed Oct 14 12:38:08 UTC 2015


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20151014/42929dbc/attachment.html>


More information about the textmate mailing list