Re: [code] lexer.lua:1853: C stack overflow

From: cryo shock <axteffekt.att.gmail.com>
Date: Wed, 29 May 2019 13:17:24 +0200

Hey Mitchell,

thanks for clarifying things. That makes sense. I will try your solution
and report back when I stumble upon trouble.

Have a nice day, cheers.

Am Mi., 29. Mai 2019 um 02:49 Uhr schrieb Mitchell <m.att.foicica.com>:

> Hi Lars,
>
> On Tue, 28 May 2019, cryo shock wrote:
>
> > Hi Mitchell,
> >
> > I experimented around a little and the problem seems to be in my own
> lexer
> > file, which only works with my own skin. This is because in my lexer
> file I
> > am still using the following syntax in three rules:
> >
> > lex:add_style('matter', *'$(style.matter)'*)
>
> Try changing this to simply:
>
> lex:add_style('matter')
>
> Behind the scenes, `lexer:add_style()` actually defines `style.matter` to
> be whatever string you give it. If you give it `$(style.matter)`, this
> triggers infinite recursion. The style you pass is only default value --
> your theme can override it, just like any other lexer style.
>
> 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.
>
>

-- 
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 Wed 29 May 2019 - 07:17:24 EDT

This archive was generated by hypermail 2.2.0 : Thu 30 May 2019 - 06:27:08 EDT