<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>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. <br><br></div></div></blockquote><div><br></div><div>Yeah I really messed up that example</div><div>I'd changed the code and the regexp halfway through posting</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>--<div>Sent from my iPad, but I am not a dork. Really.</div><div><span style="background-color:rgba(255,255,255,0)">matt neuburg, phd = <a href="http://www.apeth.net/matt/" target="_blank">http://www.apeth.net/matt/</a><br>pantes anthropoi tou eidenai oregontai phusei<br>Programming iOS 9! <a href="http://shop.oreilly.com/product/0636920044352.do" target="_blank">http://shop.oreilly.com/product/0636920044352.do</a><br>iOS 9 Fundamentals! <a href="http://shop.oreilly.com/product/0636920044345.do" target="_blank">http://shop.oreilly.com/product/0636920044345.do</a><br>RubyFrontier! <a href="http://www.apeth.com/RubyFrontierDocs/default.html" target="_blank">http://www.apeth.com/RubyFrontierDocs/default.html</a></span></div></div><div><div class="h5"><div><br>On Oct 14, 2015, at 5:38 AM, Carpii UK <<a href="mailto:carpii.uk@gmail.com" target="_blank">carpii.uk@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">Im trying to add code folding regular expressions for a templating language I use <div><br></div><div>Even if I pare it back to the most basic of examples, I cant seem to get it working..</div><div><br></div><div>{if (true)}<br></div><div> {foo}</div><div>{/if}</div><div><br></div><div><div><div>foldingStartMarker = '^\{if\}';</div><div>foldingStopMarker = '^\{\\if\}';</div></div><div><br></div><div>If I omit the closing } from the first line of code...</div><div><br></div><div>{if (true)<br></div><div><br></div><div>Then TM does show the code folding marker (odd since the regexp should require it?), but either way the code still doesn't fold </div><div><br></div><div>What am I missing?</div><div><br></div><div>Thanks</div><div><br></div></div></div>
</div></blockquote></div></div><blockquote type="cite"><div><span></span><br><span class=""><span>_______________________________________________</span><br><span>textmate mailing list</span><br><span><a href="mailto:textmate@lists.macromates.com" target="_blank">textmate@lists.macromates.com</a></span><br><span><a href="http://lists.macromates.com/listinfo/textmate" target="_blank">http://lists.macromates.com/listinfo/textmate</a></span></span></div></blockquote></div><br><br>
_______________________________________________<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>