Re: [code] fold_line_comments doesn't seem to work

From: Mitchell <m.att.foicica.com>
Date: Mon, 6 Jan 2014 10:39:13 -0500 (Eastern Standard Time)

Hi Michael,

On Mon, 6 Jan 2014, Michael Richter wrote:

> I was banging my head against making line comments fold in a lexer I'm
> working on when I noticed two things:
>
> 1. This code in lua.lua:
>
> M._foldsymbols = {
> -- …
> [l.COMMENT] = { ['['] = fold_longcomment, [']'] = fold_longcomment,
> ['--'] = l.fold_line_comments('--')
> },
> -- …
> }
>
> 2. Line comments don't fold in Lua source.
>
> Is this a bug or is there some trick I'm unaware of?

Please make sure your `~/.textadept/properties.lua` sets the
'fold.line.comments' property to '1'. For example:

   buffer.property['fold.line.comments'] = '1'

It is commented out by default in Textadept's `properties.lua`.

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 Mon 06 Jan 2014 - 10:39:13 EST

This archive was generated by hypermail 2.2.0 : Tue 07 Jan 2014 - 06:50:42 EST