From unknown Thu Jun 19 14:04:43 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#16118 <16118@debbugs.gnu.org> To: bug#16118 <16118@debbugs.gnu.org> Subject: Status: 24.3.50; ruby-smie-rules: hanging literal in first method call argument is indented 1 column too few Reply-To: bug#16118 <16118@debbugs.gnu.org> Date: Thu, 19 Jun 2025 21:04:43 +0000 retitle 16118 24.3.50; ruby-smie-rules: hanging literal in first method cal= l argument is indented 1 column too few reassign 16118 emacs submitter 16118 Dmitry Gutov severity 16118 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 12 00:49:12 2013 Received: (at submit) by debbugs.gnu.org; 12 Dec 2013 05:49:12 +0000 Received: from localhost ([127.0.0.1]:44601 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vqz95-0007dj-8b for submit@debbugs.gnu.org; Thu, 12 Dec 2013 00:49:11 -0500 Received: from eggs.gnu.org ([208.118.235.92]:44859) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vqz93-0007da-43 for submit@debbugs.gnu.org; Thu, 12 Dec 2013 00:49:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vqz8w-0001WL-VK for submit@debbugs.gnu.org; Thu, 12 Dec 2013 00:49:08 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:40629) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vqz8w-0001WH-SI for submit@debbugs.gnu.org; Thu, 12 Dec 2013 00:49:02 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46574) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vqz8q-0006HL-Sr for bug-gnu-emacs@gnu.org; Thu, 12 Dec 2013 00:49:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vqz8l-0001Va-0Y for bug-gnu-emacs@gnu.org; Thu, 12 Dec 2013 00:48:56 -0500 Received: from mail-ea0-x22a.google.com ([2a00:1450:4013:c01::22a]:33740) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vqz8k-0001VW-Ms for bug-gnu-emacs@gnu.org; Thu, 12 Dec 2013 00:48:50 -0500 Received: by mail-ea0-f170.google.com with SMTP id k10so3290522eaj.15 for ; Wed, 11 Dec 2013 21:48:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:mime-version:content-type; bh=Lbtocjj9nTE7iMM9/O36DlExg4GZ5qa3LHTuxXpke6A=; b=kRaqjh6uL1rOgQMlhjQwImQFvoD+JSBbrVnsFJOe7+St3F5q6wyFRVGjqarpZmqq7i 7XKgr6O9kKHzZn5ApQixJGQa7DX0Iw/e49kN7/Pca+mCxrnn25ZX9yaIqLY9Wo4zjB+N 7xxR0lQbFFBzm9VDsoeJcs687UA7ji3XqRB4bwVGnSNSHXuBL6iFVaZDVi3FfDWDaN/s FukOohRpnvLU5cUVKs6O7z9KFrtp3goUxcPOtNXJE6TO5Sr5nA/Xa+LlP2V2zni31uCa Vmv02i/os0Wq67X5AAfA0/GOi5QDgH4/KVIxhQJoZeBMcqiYuVKwblBRHDzi1pA9Km10 JK2A== X-Received: by 10.14.211.130 with SMTP id w2mr5413049eeo.111.1386827329415; Wed, 11 Dec 2013 21:48:49 -0800 (PST) Received: from axl (213-241-09.netrun.cytanet.com.cy. [213.7.241.9]) by mx.google.com with ESMTPSA id e43sm61615781eep.7.2013.12.11.21.48.47 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 11 Dec 2013 21:48:48 -0800 (PST) From: Dmitry Gutov To: bug-gnu-emacs@gnu.org 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 Message-ID: <877gbaipqe.fsf@yandex.ru> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) 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 From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 14 01:49:58 2013 Received: (at 16118-done) by debbugs.gnu.org; 14 Dec 2013 06:49:58 +0000 Received: from localhost ([127.0.0.1]:49104 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vrj2z-0008J1-E3 for submit@debbugs.gnu.org; Sat, 14 Dec 2013 01:49:57 -0500 Received: from mail-ea0-f174.google.com ([209.85.215.174]:57382) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vrj2t-0008Ip-MI for 16118-done@debbugs.gnu.org; Sat, 14 Dec 2013 01:49:54 -0500 Received: by mail-ea0-f174.google.com with SMTP id b10so1229408eae.33 for <16118-done@debbugs.gnu.org>; Fri, 13 Dec 2013 22:49:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=qb4cdLe4Tla9QtbNSGHO0DBQWy6R/R7Y9G6lRGH3W7E=; b=SWGjyiWIcuO4DSnGHmqzBbskgQ43XIqeeUt4FR0oYStsb0eOUi9pF604AMBv6Ri88V fVmeJR48unUCDnoMgBNnvIyjbkIULTxGoSFNr/rauB+R4QPv8NwwSMtTlDep2qVvaE6T SIz+HxbA81Shw3gsTn59UAzOPeITx6KnQnczUFAPcWEZ2ObB/N14nSUoAMMmXBvyoUjV M3k4MGIl0Ny2ePaQqVgdtJTAv4XSX8ZB1iZqT3u3JefqYj9sBSW3xOa0qX4lwFdoKHJY uLL/VK+HIn7pqqaIHzzuAxqfli4DvOOb80Zd0C1NH+9fL7ZK5lvdbh5U+tiQlcClznaO pTpA== X-Received: by 10.14.204.70 with SMTP id g46mr6500648eeo.84.1387003790662; Fri, 13 Dec 2013 22:49:50 -0800 (PST) Received: from [192.168.10.2] ([83.168.26.131]) by mx.google.com with ESMTPSA id h3sm15071501eem.15.2013.12.13.22.49.48 for <16118-done@debbugs.gnu.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Dec 2013 22:49:49 -0800 (PST) Message-ID: <52ABFF8A.5070209@yandex.ru> Date: Sat, 14 Dec 2013 08:49:46 +0200 From: Dmitry Gutov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 MIME-Version: 1.0 To: 16118-done@debbugs.gnu.org Subject: Re: bug#16118: Acknowledgement (24.3.50; ruby-smie-rules: hanging literal in first method call argument is indented 1 column too few) References: <877gbaipqe.fsf@yandex.ru> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 16118-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Version: 24.4 Revision 115514. From unknown Thu Jun 19 14:04:43 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 11 Jan 2014 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator