Re: [code] Still wrestling with oddball folds.

From: Mitchell <m.att.foicica.com>
Date: Thu, 9 Jan 2014 12:24:50 -0500 (Eastern Standard Time)

Michael,

On Wed, 8 Jan 2014, Michael Richter wrote:

> On 8 January 2014 21:11, Mitchell <m.att.foicica.com> wrote:
>
>> How would you suggest the existing documentation to be improved?
>>
>> "The lexer calls these functions with the following arguments: the text to
>> identify fold points in, the beginning position of the current line in the
>> text to fold, the current line’s text, the position in the current line the
>> matched text starts at, and the matched text itself."
>
> Now that I read it again, perhaps this:
>
> The lexer calls these functions with the following arguments:
>> - the text to identify fold points in,
>> - the beginning position of the current line in the text to fold,
>> - the current line’s text,
>> - the position in the current line the matched text starts at, and
>> - the matched text itself.
>>
>> I'd also probably explain more what you mean by the first parameter. Is
> that all the text in the buffer?

Thanks for your feedback. I will look into your suggestion.

The first parameter is all the text passed to the lexer to fold. This may
or may not be all buffer text, depending on lexer state. It's much like
the first parameter to the `lex()` function.

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 Thu 09 Jan 2014 - 12:24:50 EST

This archive was generated by hypermail 2.2.0 : Fri 10 Jan 2014 - 06:27:58 EST