From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: emacs-devel@gnu.org
Subject: Re: trunk r114545: * lisp/progmodes/ruby-mode.el: Fix recently added tests.
Date: Mon, 07 Oct 2013 11:22:49 -0400 [thread overview]
Message-ID: <jwviox985zp.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <874n8tz5d9.fsf@yandex.ru> (Dmitry Gutov's message of "Mon, 07 Oct 2013 14:29:22 +0300")
>> 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
> (http://bugs.ruby-lang.org/issues/5357),
Indeed, it's the indentation style I see in most examples.
>> +# 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.
Anyway, you can adjust ruby-smie--implicit-semi-p to reflect the "rule".
Stefan
next prev parent reply other threads:[~2013-10-07 15:22 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 [this message]
2013-10-07 23:27 ` Dmitry Gutov
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=jwviox985zp.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=dgutov@yandex.ru \
--cc=emacs-devel@gnu.org \
/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.