emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#16118: closed (24.3.50; ruby-smie-rules: hanging l


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#16118: closed (24.3.50; ruby-smie-rules: hanging literal in first method call argument is indented 1 column too few)
Date: Sat, 14 Dec 2013 06:50:04 +0000

Your message dated Sat, 14 Dec 2013 08:49:46 +0200
with message-id <address@hidden>
and subject line Re: bug#16118: Acknowledgement (24.3.50; ruby-smie-rules: 
hanging literal in first method call argument is indented 1 column too few)
has caused the debbugs.gnu.org bug report #16118,
regarding 24.3.50; ruby-smie-rules: hanging literal in first method call 
argument is indented 1 column too few
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
16118: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16118
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 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
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 address@hidden
Windowing system distributor `The X.Org Foundation', version 11.0.11403000
System Description:     Ubuntu 13.10



--- End Message ---
--- Begin Message --- Subject: Re: bug#16118: Acknowledgement (24.3.50; ruby-smie-rules: hanging literal in first method call argument is indented 1 column too few) Date: Sat, 14 Dec 2013 08:49:46 +0200 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1
Version: 24.4

Revision 115514.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]