I couldn't find the Ruby on Rails: TextMate group (did it go away?) so
I'm posting my question here.

I'm creating my own custom language syntax for TextMate.  In the
bundle editor I'm setting up folding like this:

        foldingStartMarker = '^\S+.*$';
        foldingStopMarker = '^\s*$';

This tells TextMate that the start of a foldable section is any non-
empty line that isn't indented, and the end of a foldable section is
an empty line.

I'm trying to match the case where the line is not technically empty,
but only contains whitespace (hence the \s* part of the regular
expression).  This does not work.  The folding stop marker appears
when the line is completely empty, but the moment I put spaces in the
line, the folding stop marker goes away.

Did I get the regular expressions wrong, is it a bug in TextMate, or
is something else wrong?

Thanks in advance!
Wyatt


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to