From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: 15594@debbugs.gnu.org, emacs-devel@gnu.org
Subject: Re: trunk r114639: * lisp/progmodes/ruby-mode.el (ruby-smie-grammar): Add rule for paren-free
Date: Mon, 14 Oct 2013 09:44:06 -0400 [thread overview]
Message-ID: <jwv38o4otsk.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <87a9icobbl.fsf@yandex.ru> (Dmitry Gutov's message of "Mon, 14 Oct 2013 05:06:38 +0300")
> So basically, I think we'd like to check if the token following POS is
> either not "special", or if it is, it begins an expression. Can we do
> that?
I don't see anything that would stop us. But it'll be more difficult to handle
method(arg1),
arg2
or
method{arg1},
arg2
since there's no space to use as "implicit method call infix operator".
Stefan
=== modified file 'test/indent/ruby.rb'
--- test/indent/ruby.rb 2013-10-14 01:51:20 +0000
+++ test/indent/ruby.rb 2013-10-14 13:39:08 +0000
@@ -177,10 +177,12 @@
foo_bar_tee(1, 2, 3)
.qux
+# Shouldn't "bar" be aligned with "foo"? --Stef
if foo &&
bar
end
+# Shouldn't "arg2" be aligned with "!" rather than with "arg1"? --Stef
method !arg1,
arg2
prev parent reply other threads:[~2013-10-14 13:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1VV5za-0006lz-QY@vcs.savannah.gnu.org>
2013-10-14 2:06 ` trunk r114639: * lisp/progmodes/ruby-mode.el (ruby-smie-grammar): Add rule for paren-free Dmitry Gutov
2013-10-14 13:44 ` Stefan Monnier [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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv38o4otsk.fsf-monnier+emacsbugs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=15594@debbugs.gnu.org \
--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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).