[TxMt] ruby folding: do... end.a_method
Allan Odgaard
throw-away-2 at macromates.com
Tue Dec 11 05:47:05 UTC 2007
On 4 Dec 2007, at 12:18, Niko Dittmann wrote:
> I recently tried to make ruby folding work all through our rails
> project and almost succeeded. Typical offenders are p.e. do... end
> statements in one line (we just use {} now). But I have problems
> with do... end blocks which directly get a method sent to:
>
> blabla.collect do |whatever|
> format(whatever)
> end.join(',')
>
> Here the folding stop working for everything that follows in the
> document [...]
Could you paste a full example? Duplicating your above snippet 3 times
have all 3 folding nicely out-of-the-box (this with the Ruby language
grammar, the Rails might not share the same folding patterns).
More information about the textmate
mailing list