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!