From: Dmitry Gutov <dgutov@yandex.ru>
To: Bozhidar Batsov <bozhidar@batsov.com>
Cc: 16811@debbugs.gnu.org
Subject: bug#16811: 24.3.50; [ruby-mode] Implicit hash indentation bug
Date: Thu, 20 Feb 2014 08:22:08 +0200 [thread overview]
Message-ID: <87fvnes3qn.fsf@yandex.ru> (raw)
In-Reply-To: <m2k3crgfpi.fsf@batsov.com> (Bozhidar Batsov's message of "Wed, 19 Feb 2014 19:44:25 +0200")
Bozhidar Batsov <bozhidar@batsov.com> writes:
> Should be:
>
> method('HashSyntax' => {
> 'EnforcedStyle' => 'ruby19',
> 'SupportedStyles' => %w(ruby19 hash_rockets)
> },
> 'SpaceAroundOperators' => { 'Enabled' => true })
>
> The fact that the hash is implicit (lacking {}) seems to mess with the
> indentation logic.
Not really. The corresponding example with explicit hash would be
{'HashSyntax' => {
'EnforcedStyle' => 'ruby19',
'SupportedStyles' => %w(ruby19 hash_rockets)
},
'SpaceAroundOperators' => {
'Enabled' => true }}
and it has the same problem.
The problem seems to be that (let (smie--parent) (smie-indent--parent))
called between "=>" and "{" doesn't stop at "=>", but goes straight to
the parent "{".
Not sure how to fix that best with the current grammar. Stefan?
next prev parent reply other threads:[~2014-02-20 6:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-19 17:44 bug#16811: 24.3.50; [ruby-mode] Implicit hash indentation bug Bozhidar Batsov
2014-02-20 6:22 ` Dmitry Gutov [this message]
2014-02-20 14:11 ` Stefan Monnier
2014-02-23 5:55 ` 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=87fvnes3qn.fsf@yandex.ru \
--to=dgutov@yandex.ru \
--cc=16811@debbugs.gnu.org \
--cc=bozhidar@batsov.com \
/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.