Force Folding

38 views
Skip to first unread message

BeeRich33

unread,
Feb 6, 2020, 9:56:24 AM2/6/20
to BBEdit Talk
BBEdit 12.1.6 (ya, I'm old)

Folding has turned off for some reason.  Can I force it to re-assess the file for comment and method folding in a Ruby class?

I've tried taking everything out and trying a handful of commented lines...nothing.  I've tried changing the language below...nothing.

Any ideas?  The file works fine.  

Cheers

BeeRich33

unread,
Feb 6, 2020, 11:35:11 AM2/6/20
to BBEdit Talk
Turns out some ruby syntax is messing this up:

class Item < Sequel::Model(:dingbat)

end

That last hash thrown as a parameter, is the culprit.  

Not sure this is fixable

BeeRich33

unread,
Feb 11, 2020, 12:14:58 PM2/11/20
to BBEdit Talk
Workaround:

(in Ruby)

module Item_methods
def alpha()        # => foldable
   
self.fieldname = 'alpha'
end
end



class Item < Sequel::Model(:dingbat)

   include
Item_methods
end
Reply all
Reply to author
Forward
0 new messages