Re: [code] Doing folds with weird syntax.

From: Michael Richter <ttmrichter.att.gmail.com>
Date: Mon, 11 Nov 2013 12:31:20 +0800

On 11 November 2013 12:02, Mitchell <m.att.foicica.com> wrote:

> Do *type* and *--->* always exist in pairs? Does *period* only exist after
> *type* and *--->*? If so, you can assign a -2 level to your *period*.
> Something like:
>
> M._foldsymbols = {
> _patterns = {'%l+', '%-%-%->', '%.'},
> [l.KEYWORD] = {type = 1},
> [l.OPERATOR] = {['--->'] = 1, ['.'] = -2}
> }
>

Well, the period is used to end all declarations: types, predicates,
functions, etc. I didn't know about the "-2" thing, though, so that could
help a lot. Thanks. I may yet get out of the woods. :)

-- 
"Perhaps people don't believe this, but throughout all of the discussions
of entering China our focus has really been what's best for the Chinese
people. It's not been about our revenue or profit or whatnot."
--Sergey Brin, demonstrating the emptiness of the "don't be evil" mantra.
-- 
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 Sun 10 Nov 2013 - 23:31:20 EST

This archive was generated by hypermail 2.2.0 : Mon 11 Nov 2013 - 06:26:28 EST