eRuby indenting capabilities

Doug Kearns dougkearns at gmail.com
Mon Dec 4 10:00:17 EST 2006


Tim,

I was just giving the new indent script a quick test drive prior to the
next release and noticed that the following example doesn't work as I'd
expect.

<%
if true
%>
foobar
<%
end 
%>

is indented as:

<%
  if true
%>
foobar
<%
    end
  %>

It also appears that the Ruby code will only be indented correctly when
the <%,%> delimiters are on lines by themselves?

eg. the following isn't transformed at all when running the
filter/indent motion over it.

<% if true
foobar
end %>


Am I misunderstanding its current capabilities?

Thanks,
Doug


More information about the vim-ruby-devel mailing list