emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ruby-mode] Private/protected method definition layout in Ruby 2.1


From: Stefan Monnier
Subject: Re: [ruby-mode] Private/protected method definition layout in Ruby 2.1
Date: Wed, 15 Jan 2014 13:51:14 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> `private' is a method, called with the expression `def ... end`.

Ah, that makes sense.

> I believe we can also handle this in the rules-function.  Add a new rule
> for (:before . "def"), see if the preceding token is one of `private',
> `public', `protected', and if so, indent to its beginning column.

If that's works, it's preferable, indeed.  Especially in light of the
above (i.e. changing the parsing would be wrong).

> Can we install such a change, with either of the approaches, during the
> feature freeze?

I think it's OK, yes.  We're not yet in the "regression-only" phase.


        Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]