jacott / Enhanced-Ruby-Mode

An enhanced ruby-mode for Emacs that uses Ripper in ruby 1.9.2 to highlight and indent the source code
Other
53 stars 64 forks source link

Bug: Deep indentation for params is off by 1 #15

Closed mbriggs closed 9 years ago

mbriggs commented 12 years ago

indentation is SO much better then official ruby-mode it is like a dream. The one issue I have noticed is if you type out this line

blah = foo(bin: 1,
          baz: 2)

you will see when you hit enter, the b in baz is lined up with the open paren of the arg list. If you indent the second line, it lines up fine, and if the whole line exists first and you hit enter right after the comma, it also indents fine.

zenspider commented 9 years ago

I believe this is fixed in my fork. Yup. Just tested it. Please close.