Re: Why renaming a lexer and putting new keyworks does not work in TA?

From: mitchell <mforal.n....at.gmail.com>
Date: Mon, 22 Feb 2010 06:58:04 -0800 (PST)

Hi,

> How do you start in creating a lexer?  As you probably know in my
> posting that I am trying to create a new lexer  i.e. glpk.lua. I am
> not successful in loading it in TA. No syntax lighting, code flooding.

http://caladbolg.net/luadoc/textadept2/modules/lexer.html

> I need clarifications why renaming a current lexer e.g. cpp.lua into
> glpk.lua and replacing the keywords of cpp into glpk keywords does not
> work.

You have to edit the lexer name in LoadTokens() and LoadStyles() (if
applicable).

Mitchell

> Again, how create a proper new lexer? I have been searching on how to
> create a new lexer. Codelite has this.
>
> http://codelite.org/LiteEditor/AddingNewLexer
>
> Any similar instruction to the above for TA?
>
> Thanks, Noli
Received on Mon 22 Feb 2010 - 09:58:04 EST

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:39:30 EST