Re: [code] [textadept] Toggle Block Comment

From: Robert Gieseke <rob.g.att.web.de>
Date: Tue, 03 Sep 2013 17:46:37 +0200

Alexander,

Am 9/3/13 5:28 PM, schrieb Mitchell:
> Hi,
>
> On Tue, 3 Sep 2013, A.M. Genaev wrote:
>
>> Some shortcoming:
>>
>> Toggle Block Comment gives error when no lexer defined.
>>
>> modules/textadept/editing.lua:277: attempt to index local 'comment' (a
>> nil
>> value)
>
> That makes sense since the function doesn't know what to use as a
> comment prefix.
>

you could workaround by adding

_M.textadept.editing.comment_string.text = ''

for the 'text'-lexer to your init.lua though.

Cheers,
Robert

-- 
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 Tue 03 Sep 2013 - 11:46:37 EDT

This archive was generated by hypermail 2.2.0 : Wed 04 Sep 2013 - 06:47:56 EDT