emacs-devel
[Top][All Lists]
Advanced

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

Re: [Emacs-diffs] trunk r114556: * test/indent/ruby.rb: Fix a spurious c


From: Dmitry Gutov
Subject: Re: [Emacs-diffs] trunk r114556: * test/indent/ruby.rb: Fix a spurious change, add more failing examples.
Date: Wed, 09 Oct 2013 16:40:56 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0

On 09.10.2013 15:47, Stefan Monnier wrote:
If I remove the `when' and just leave (smie-rule-parent), none of the
indentation examples break, AFAICS.

IIRC it's for the case where the "do" is at the beginning of the line

That would be a syntax error.

or is not at the end of the line.

I found an example where it makes a difference, but it looks too weird:

    it do foo {

         }
       end

Never seen Ruby code written this way. I'm going to simplify that case, then, as long as you don't mind.



reply via email to

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