Re: Next generation of lexers

From: Robert <>
Date: Sun, 2 May 2010 20:26:48 +0200

On Fri, Apr 30, 2010 at 12:31 PM, Robert <> wrote:
> On Wed, Apr 28, 2010 at 8:07 AM, Brian Schott <> wrote:
>> I've created an issue in Google Code for this.
>> I use LaTeX and various extension packages such as Beamer. The list of
>> environments and commands is never going to be complete enough to
>> highlight arbitrary Tex/LaTeX documents, so I think your solution of using
>> local command = token('keyword', '\\' * l.word)
>> is a good one.
> Brian,
> could you maybe test this, please:
> Saving it as latex.lua in your ~/.textadept/lexers should work.
> It looks good on the documents I tested.
> ConTeXt environments are covered as well (startsomething, stopsomething)
> In LaTeX I changed the Math "strings" $ to environments as well. That
> way, the math symbols inside inside the environments get lexed as
> well.
> I added math environment shortcuts \(, \) etc. as well.
> Further Latex escapes like \$ and square brackets as an operator.

Brian, I hadn't seen that a change to the Latex lexer was pushed to
the Scintillua repo.
Maybe you could still give it a look? I think it would be good to have
Context covered as well.


You received this message because you are subscribed to the Google Groups "textadept" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at
Received on Sun 02 May 2010 - 14:26:48 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:43:45 EST