[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwrite-devel
Subject:    Re: Indentation based folding
From:       Christoph Cullmann <cullmann () absint ! com>
Date:       2016-10-03 10:18:13
Message-ID: 247984213.488675.1475489893659.JavaMail.zimbra () absint ! com
[Download RAW message or body]

Hi,

> On Mon, Oct 3, 2016 at 12:01 PM, Volker Krause <vkrause@kde.org> wrote:
>> On Monday 03 October 2016 11:57:38 Christoph Cullmann wrote:
>>> Hi,
>>>
>>> > Adding this to State is one way, another option might be to extend
>>> > FoldingRegion::Type:
>>> >
>>> > enum Type {
>>> >
>>> >    Begin,
>>> >    End,
>>> >    SuspendIndentionFolding,
>>> >    ResumeIndentionFolding
>>> >
>>> > };
>>>
>>> I think the State would be better for lookup.
>>> Else one needs to keep track oneself for which lines what is active,
>>> whereas with inside the state over the context stack this would be done
>>> automatically, or?
>>
>> Yes. But you would only get the indention mode at the end of the line. Is that
>> good enough?
> 
> Right, we'd only get the info at end of line. But isn't that exactly
> what we need, i.e., tell the indentation based folding to shut up for
> "this-to-next-line" ?
I think that is good enough.

Greetings
Christoph

-- 
----------------------------- Dr.-Ing. Christoph Cullmann ---------
AbsInt Angewandte Informatik GmbH      Email: cullmann@AbsInt.com
Science Park 1                         Tel:   +49-681-38360-22
66123 Saarbrücken                      Fax:   +49-681-38360-20
GERMANY                                WWW:   http://www.AbsInt.com
--------------------------------------------------------------------
Geschäftsführung: Dr.-Ing. Christian Ferdinand
Eingetragen im Handelsregister des Amtsgerichts Saarbrücken, HRB 11234
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic