[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.
Tue, 08 Oct 2013 02:27:08 +0300
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0
On 07.10.2013 18:22, Stefan Monnier wrote:
+# FIXME: is this really valid Ruby? Isn't the newline after "foo" treated as
+# 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.
This is the best I'm aware of:
(search for "Line-break handling").
I don't see the exception mentioned.
Anyway, you can adjust ruby-smie--implicit-semi-p to reflect the "rule".
Done, seems to work.