From: Dmitry Gutov <dgutov@yandex.ru>
To: 16118@debbugs.gnu.org
Subject: bug#16118: 24.3.50; ruby-smie-rules: hanging literal in first method call argument is indented 1 column too few
Date: Thu, 12 Dec 2013 07:48:41 +0200 [thread overview]
Message-ID: <877gbaipqe.fsf@yandex.ru> (raw)
We have this example in indent/ruby.rb:
foo({
a: b,
c: d
})
- The curlies don't line up.
- If I expand this example, the hash literal in the first argument
doesn't line up with the arguments after it:
foo({
a: b,
c: d
},
{
e: f
})
foo({
a: b,
c: d
}, :bar => {
e: f
})
foo(:bar =>
{
a: b,
c: d
}, :tee =>
{
e: f
})
...but:
foo({
a: b,
c: d
}, {
e: f
})
Still, I think the literals should be lined up to the first column after
"(", not the column of "(" itself. How can we do that?
Adding a `(1+ )' in the relevant place in `ruby-smie-rules' is an
obvious solution, but it breaks other examples.
In GNU Emacs 24.3.50.8 (x86_64-unknown-linux-gnu, GTK+ Version 3.8.6)
of 2013-12-09 on axl
Bzr revision: 115440 dmantipov@yandex.ru-20131209163052-oess75ps2o5tt61q
Windowing system distributor `The X.Org Foundation', version 11.0.11403000
System Description: Ubuntu 13.10
next reply other threads:[~2013-12-12 5:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-12 5:48 Dmitry Gutov [this message]
[not found] ` <handler.16118.B.138682735229376.ack@debbugs.gnu.org>
2013-12-14 6:49 ` bug#16118: Acknowledgement (24.3.50; ruby-smie-rules: hanging literal in first method call argument is indented 1 column too few) 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=877gbaipqe.fsf@yandex.ru \
--to=dgutov@yandex.ru \
--cc=16118@debbugs.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.