<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class=""><br>
<br>
</span>Based on your example, I think it should instead be:<br>
<br>
foldingStartMarker = '^\{if.*\}';<br>
foldingStopMarker = '^\{/if\}';<br>
<br></blockquote><div><br></div><div>Thanks but I can't get your regexp working with this code either <br></div><div><br></div><div><span style="color:rgb(80,0,80);font-size:13.6px">{if (true)}</span><br style="color:rgb(80,0,80);font-size:13.6px"><span style="color:rgb(80,0,80);font-size:13.6px"> {foo}</span><br style="color:rgb(80,0,80);font-size:13.6px"><span style="color:rgb(80,0,80);font-size:13.6px">{/if}</span><br></div><div><br></div><div><br></div><div>Even if I write invalid code just to allow the regexp to be simpler, its still failing to parse it....</div><div><br></div><div>{if}</div><div> {foo}</div><div>{/if}</div><div><br></div><div><div>foldingStartMarker = '^\{if\}'; </div><div>foldingStopMarker = '^\{/if\}'; </div></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
_______________________________________________<br>
textmate mailing list<br>
<a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a><br>
<a href="http://lists.macromates.com/listinfo/textmate" rel="noreferrer" target="_blank">http://lists.macromates.com/listinfo/textmate</a><br>
</blockquote></div><br></div></div>