<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body 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>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/" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="0">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" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="1">http://shop.oreilly.com/product/0636920044352.do</a><br>iOS 9 Fundamentals! <a href="http://shop.oreilly.com/product/0636920044345.do" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="2">http://shop.oreilly.com/product/0636920044345.do</a><br>RubyFrontier! <a href="http://www.apeth.com/RubyFrontierDocs/default.html" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="3">http://www.apeth.com/RubyFrontierDocs/default.html</a></span></div></div><div><br>On Oct 14, 2015, at 5:38 AM, Carpii UK <<a href="mailto:carpii.uk@gmail.com">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><blockquote type="cite"><div><span></span><br><span>_______________________________________________</span><br><span>textmate mailing list</span><br><span><a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a></span><br><span><a href="http://lists.macromates.com/listinfo/textmate">http://lists.macromates.com/listinfo/textmate</a></span></div></blockquote></body></html>