Re: [textadept] TeX lexers

From: mitchell <c....at.caladbolg.net>
Date: Fri, 17 Jun 2011 12:28:52 -0400 (Eastern Daylight Time)

Robert,

On Fri, 17 Jun 2011, Robert wrote:

> Hi Mitchell,
>
> On Fri, Jun 17, 2011 at 3:44 PM, mitchell <c....at.caladbolg.net> wrote:
> [...]
>>> About folding, in plain TeX and Context I have
>>> \begintt ... \endtt or \starttyping ... \endtyping blocks. It is not
>>> possible to handle these with the simple folding, correct?
>>> They can only match text, so I have to write a function?
>>
>> I don't understand why not. If you add tokens that capture those blocks you
>> can add them to _foldsymbols, no?
>>
> It seems to only work with built-in token names like l.COMMENT,
> l.KEYWORD - when I have fold patterns
> [l.COMMENT] = { ['\\begin'] = 1, ['\\end'] = -1 },
> ['environment'] = { ['\\begin'] = 1, ['\\end'] = -1 },
> only the first works.
> What is the getStyleAt function doing/looking for?

I don't know why you are seeing this because it's working for me: \begin
.. \end environment tokens fold properly. getStyleAt should return a
string.

mitchell
Received on Fri 17 Jun 2011 - 12:28:52 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 12:11:25 EST