Re: [code] [textadept] lexer -- folding problem

From: Mitchell <m.att.foicica.com>
Date: Fri, 21 Nov 2014 10:43:11 -0500 (EST)

Hi Joshua,

On Wed, 12 Nov 2014, Joshua Kršmer wrote:

> Hi Mitchell,
>
> please consider the following code, for example with the TCL lexer
> active:
>
>
> one {
> two
> } three {
> four
> }
>
>
> the two pairs of braces should be recognized as separate folding
> structures. But the whole complex is recognized as a single folding
> element. Is it possible to separate them?

I'll add a new fold property 'fold.on.zero.sum.lines' that will mark
'} ... {' lines as fold headers. You can enable it by setting

   buffer.property['fold.on.zero.sum.lines'] = 1

in your ~/.textadept/properties.lua file. This will be available in the
next nightly or two.

Cheers,
Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Fri 21 Nov 2014 - 10:43:11 EST

This archive was generated by hypermail 2.2.0 : Sat 22 Nov 2014 - 06:39:47 EST