Home Download Buy Blog Forum Support

Bug Report: Ruby indentation broken

Bug Report: Ruby indentation broken

Postby thyresias on Wed Oct 03, 2012 8:22 pm

Ruby indentation is broken compared to TextMate (I checked that the ST Ruby/Miscellaneous.tmPreferences file is the same as TM Miscellaneous.plist)
Try to cut and then "paste and indent" the "puts e" line in the following to reproduce:
Code: Select all
list.each { |e|
  puts e
}
list.each do |e|
  puts e
end
  %w(a b c).each do |e|
    puts e
  end
    %w(
      a b c
    ).each do |e|
      puts e
    end


In TM, you get the exact same indentation. In ST:

Code: Select all
list.each { |e|
puts e
}
list.each do |e|
puts e
end
  %w(a b c).each do |e|
  puts e
  end
    %w(
      a b c
    ).each do |e|
puts e
    end

Can you confirm you can reproduce this?
thyresias
 
Posts: 15
Joined: Tue Oct 02, 2012 5:54 pm

Return to Technical Support

Who is online

Users browsing this forum: Google [Bot], tomekwi and 17 guests