From: Dmitry Gutov <dgutov@yandex.ru>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: trunk r114545: * lisp/progmodes/ruby-mode.el: Fix recently added tests.
Date: Tue, 08 Oct 2013 02:27:08 +0300 [thread overview]
Message-ID: <5253434C.4010809@yandex.ru> (raw)
In-Reply-To: <jwviox985zp.fsf-monnier+emacs@gnu.org>
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?
>>> foo
>>> .bar
>> 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.
prev parent reply other threads:[~2013-10-07 23:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1VT1eQ-0007di-60@vcs.savannah.gnu.org>
2013-10-07 11:29 ` trunk r114545: * lisp/progmodes/ruby-mode.el: Fix recently added tests Dmitry Gutov
2013-10-07 15:22 ` Stefan Monnier
2013-10-07 23:27 ` Dmitry Gutov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5253434C.4010809@yandex.ru \
--to=dgutov@yandex.ru \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.