Re: [textadept] TeX lexers

From: Robert <ro....at.web.de>
Date: Sat, 18 Jun 2011 13:17:10 +0200

On Fri, Jun 17, 2011 at 6:28 PM, mitchell <c....at.caladbolg.net> wrote:
>>>
>> 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.
>

I've pushed a current version [1]:

If I only use l.* token names [2], like l.FUNCTION instead of
'environment', both

\begin{comment}
...
\end{comment}

\begin{something}
...
\end{something}

are folded, but not with the 'environment' version. Do both versions
work for you?

Robert

[1] https://github.com/rgieseke/textadept-lexers/blob/master/latex.lua
[2] https://gist.github.com/1033004
Received on Sat 18 Jun 2011 - 07:17:10 EDT

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