[Top][All Lists]

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

Re: trunk r114545: * lisp/progmodes/ruby-mode.el: Fix recently added tes

From: Dmitry Gutov
Subject: Re: trunk r114545: * lisp/progmodes/ruby-mode.el: Fix recently added tests.
Date: Tue, 08 Oct 2013 02:27:08 +0300
User-agent: 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: http://whitequark.org/blog/2013/04/01/ruby-hacking-guide-ch-11-finite-state-lexer/ (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.

reply via email to

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