language-ruby
language-ruby copied to clipboard
auto indent not working as expected
I ran into a situation where Auto Indent results in a wrong indent. I could reduce the example code to the following:
class Example
private
def attribute_and_value(attribute, value)
"%s: %s" % [human_attribute_name(attribute),
value]
end
end
After calling Auto Indent it will look like this:
class Example
private
def attribute_and_value(attribute, value)
"%s: %s" % [human_attribute_name(attribute),
value]
end
end
Started running into this issue since Atom started auto-indenting on paste.
There's also this:
module Architect
module Replicatable
private def clone
@clone
end
private def origin
@origin
end
end
end
First ⌘ + c then ⌘ + v:
module Architect
module Replicatable
private def clone
@clone
end
private def origin
@origin
end
end
end
This bug honestly has cost me 10% of my development time today.
@senny's issue seems to be broken on tmbundle as well - reported an issue there: https://github.com/textmate/ruby.tmbundle/issues/79
for @krainboltgreene's issue, I made a pull request: https://github.com/atom/language-ruby/pull/76
+1 to @senny's issue
This still seems to be an issue :+1:
It's atom-wide (v0.192, 0.198, 0.199): here.
And it's still an issue...
+1
Spent the better part of a day trying to track down why this was happening, glad at least to see it's not just me.