Re: [textadept] Changing folding symbol to MARK_BOX* tree doesn't work

From: mitchell <c....at.caladbolg.net>
Date: Sun, 15 May 2011 13:51:48 -0400 (EDT)

On Sun, 15 May 2011, Robert wrote:

> On Sun, May 15, 2011 at 6:16 PM, mitchell <c....at.caladbolg.net> wrote:
>>
>> On Sat, 14 May 2011, mitchell wrote:
>>
>>> There is a bug in the fold by indentation code. The correct markers show up for the contributed dmd folding code. I will have to compare that code to mine to see what I'm missing.
>>
>> I believe this is unique only to fold by indentation because the fold levels do not usually increase or decrease by one, but instead by the number of spaces involved in the change in indentation. The dmd folder shows the correct markers because it changes the fold level by only one. I wrote a lua folder as an experiment that changes levels by one and it shows all markers too. So until folders have been implemented for the lexers you use, not all markers will show up. Which ones do you use? If it's possible, I will make those a priority.
>>
>> mitchell
>>
>
> The updated Lua lexer from Scintillua hg does not show any markers for
> me. Do I have to change something else?

You will have to recompile ta with the newest LexLPeg.cxx. I have also
made a comment in the new folding thread.

> Wouldn't it be possible to have a generic translation from
> spaces-based indentation to levels if no _fold function is available?

This cannot be done easily without getting the buffer's indent size which
is not exposed to the the LPeg lexer (via ILexer interface).

mitchell
Received on Sun 15 May 2011 - 13:51:48 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 12:06:56 EST