[TxMt] Re: Code folding regexp

Matt Neuburg matt at tidbits.com
Wed Oct 14 12:43:50 UTC 2015


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. 

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


More information about the textmate mailing list