Re: [code] Still wrestling with oddball folds.

From: Mitchell <m.att.foicica.com>
Date: Tue, 7 Jan 2014 13:42:16 -0500 (Eastern Standard Time)

> [snip]
> You should be using a function to determine the end of the fold point
> because I don't see a good pattern rule. This seems to work for me:
>
> M._foldsymbols = {
> _patterns = { '%:%-', '%.', },
> [l.OPERATOR] = {
> [':-'] = 1,
> ['.'] = function(text, pos, line, s, match)
> return line:find('%.%f[%s]', s) and -1 or 0

Actually, the pattern should be anchored: '^%.%f[%s]'.

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 Tue 07 Jan 2014 - 13:42:16 EST

This archive was generated by hypermail 2.2.0 : Wed 08 Jan 2014 - 06:44:37 EST