[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: trunk r114545: * lisp/progmodes/ruby-mode.el: Fix recently added tes
Re: trunk r114545: * lisp/progmodes/ruby-mode.el: Fix recently added tests.
Mon, 07 Oct 2013 11:22:49 -0400
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
>> a = foo(j, k) -
>> - bar_tee
>> + bar_tee
> Hmm, that indentation looks meaningful, and it's even close to
> implementing one of the long-standing feature requests
Indeed, it's the indentation style I see in most examples.
>> +# FIXME: is this really valid Ruby? Isn't the newline after "foo" treated
>> +# an implicit semi-colon?
> It is, I guess it's the main exception to the newline termination rule.
Is the newline termination rule documented somewhere? All I could find
was discussions about the style, but no definitive clear definition of
when a newline is treated as a semi-colon.
Anyway, you can adjust ruby-smie--implicit-semi-p to reflect the "rule".