Michael Ulm
4/25/2005 12:08:00 PM
Andrew Walrond wrote:
> On Sunday 24 April 2005 22:54, Thomas Kirchner wrote:
>
>>Vim is excellent at folding (along with pretty much everything else).
>>You can fold by any number of methods, including indent, marker,
>>expression, syntax, diff-style, or even manual... Give it a shot if
>>you're not too die-hard with emacs.
>>Tom
>
>
> Vim fell at the first hurdle; syntax colouring/highlighting :(
> It seems unhappy with IO#<< unless I put some spaces around it; Try the
> attached file.
The syntax highlighting engine parses the line
f<<stdin
as the beginning of a Here Document. This would go away if you
put a space after the << (makes the code more readable too IMO).
As a fix (especially if you don't use Here Documents anyway) you
can comment out the lines in the Here Document section of the
ruby.vim file; actually, commenting out only the first line there,
(the one containing the expression '<<\z' (without the quotes))
should work too.
HTH,
Michael
--
Michael Ulm
R&D Team
ISIS Information Systems Austria
tel: +43 2236 27551-219, fax: +43 2236 21081
e-mail: michael.ulm@isis-papyrus.com
Visit our Website: www.isis-papyrus.com