On Wednesday, January 1, 2003, 7:34:54 PM, Matt wrote:

> nobu.nokada / softhome.net writes:

>>
>> I thought a new syntax like this,
>>
>>     p <<-|EOS
>>       |  foo
>>       |    bar
>>     EOS
>>     # => "  foo\n    bar\n"
>>

> I like this, though my biggest problem with << is that the
> ruby-mode.el still wants to indent.  If <<-| were understood by
> ruby-mode.el, that'd be great.

I (try to) maintain the indent file for Vim, and here-docs are an
indentation nightmare.  Emacs may be made to understand <<-|, but
consider this:
 * the - is optional (it means "EOS" or whatever may be indented)
 * the | could be one of many characters

Ruby, in general is very hard to write indenting rules for :)

Gavin