Hugh Sasse wrote:

> Damn! This problem is just too close to the wire with 6.4 imminent.
> I'm getting
> 
> brains hgs 20 %> cat !$
> cat short_heredoc.rb
> class Example
>   def initialize
>     print <<EOF
>     "Hi there"
> EOF
>     end
> end
> 
> brains hgs 21 %>
> indented like:
> brains hgs 21 %> !v
> vim short_heredoc.rb
> brains hgs 22 %> cat !$
> cat short_heredoc.rb
> class Example
>   def initialize
>     print <<EOF
>     "Hi there"
>     EOF
>   end
> end

Huh?  The indentation doesn°«t indent multiline strings, so if you have

  print <<EOF
    "Blah"
EOF

it should leave everything were you put it.  That°«s a compromise for how
exceedingly difficult it would be to implement this correctly without
going LALR on it.  Perhaps you don°«t have syntax on?,
        nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}