Emacs ruby-mode indentation behavior

前端 未结 3 1846
悲哀的现实
悲哀的现实 2020-12-14 20:33
class Foo
  attr_accessor :a,
                :time, # ms since epoch
                :b,
                :c
end

In text mode, the variables listed after \'a\'

3条回答
  •  醉梦人生
    2020-12-14 21:00

    From Remi (in comments): Note that Emacs will correctly indent class Foo attr_accessor(:a, :time, # ms since epoch :b, :c) end – Rémi Dec 11 '10 at 8:50

    You can add parens and have it indent properly -- I'm adding this here because I'm looking for unanswered questions, and this one comes up (incorrectly, since it has been answered in the comments).

提交回复
热议问题