Your regexes in no way resemble the code example. Back and forward slashes do not match each other. Plain if is never followed by closing curly brace. m. 


Yeah I really messed up that example
I'd changed the code and the regexp halfway through posting





 
--
Sent from my iPad, but I am not a dork. Really.
matt neuburg, phd = http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 9! http://shop.oreilly.com/product/0636920044352.do
iOS 9 Fundamentals! http://shop.oreilly.com/product/0636920044345.do
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html

On Oct 14, 2015, at 5:38 AM, Carpii UK <carpii.uk@gmail.com> wrote:

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


_______________________________________________
textmate mailing list
textmate@lists.macromates.com
http://lists.macromates.com/listinfo/textmate


_______________________________________________
textmate mailing list
textmate@lists.macromates.com
http://lists.macromates.com/listinfo/textmate