|
From: | Dmitry Gutov |
Subject: | Re: ruby-mode broken with indentation? |
Date: | Sat, 02 Nov 2013 09:22:02 +0400 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0 |
Hi Akinori, On 29.10.2013 20:49, Akinori MUSHA wrote:
I found ruby-mode indents an assignment + block construct incorrectly: What I expect is as follows: ``` a = b { c } aa = bb do cc end ``` But ruby-mode from Emacs trunk indents it as follows: ``` a = b { c } aa = bb do cc end ``` Does this reproduce for you?
It does. ruby-mode in Emacs trunk has switched to SMIE as its default indentation engine, and it still handles some cases badly. To use the old indentation engine, add (setq ruby-use-smie nil) to your config.
I've fixed the examples above in revision 114901, but I'm not sure if that was a good approach. Stefan, could you take a look?
[Prev in Thread] | Current Thread | [Next in Thread] |