All working now, thanks Allan

I'd added my regexps into the Language Grammar instead of Settings -> Folding entry

I was working from the TM Manual, but I guess it only applies to TM1..
https://manual.macromates.com/en/language_grammars.html

Had I restarted TM, I would have noticed my rules disappear form the grammar anyway, implying they were invalid 





On 14 October 2015 at 13:58, Allan Odgaard <mailinglist@textmate.org> wrote:
On 14 Oct 2015, at 19:49, Carpii UK wrote:

> Thanks but I can't get your regexp working with this code either
>
> {if (true)}
> {foo}
> {/if}

Works here.

Might be a scope issue.

Try select Bundles → Select Bundle Item…

Click “Settings” and enter “folding”.

Do you see your own settings at the top?

If not, then you might need to change their scope selector.

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