Re: [code][textadept] Advanced use of Textadept Lexers

From: Mitchell <m.att.foicica.com>
Date: Thu, 27 Feb 2014 16:54:01 -0500 (Eastern Standard Time)

Chris,

On Thu, 27 Feb 2014, Chris Emerson wrote:

> Hi,
>
> On Thu, Feb 27, 2014 at 07:01:35AM +0100, Richard Philips wrote:
>> I think this problem is not so different as how textadept is styling code;
>> textadept associates styling information with tokens. In much the same
>> manner I would like to associate actions with tokens.
>
> I'd also find it useful using the lexing infrastructure to do things other
> than pure styling. The folding functionality is very close to what's needed
> for auto-indenting, for example.

As I mentioned in #2 in my previous reply, you can call Textadept's lexers
directly. In your case, you might want to try calling `lexer.fold()` and
interpreting the output to accomplish what you're looking for.

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 27 Feb 2014 - 16:54:01 EST

This archive was generated by hypermail 2.2.0 : Fri 28 Feb 2014 - 06:36:14 EST