From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#15594: trunk r114639: * lisp/progmodes/ruby-mode.el (ruby-smie-grammar): Add rule for paren-free Date: Mon, 14 Oct 2013 09:44:06 -0400 Message-ID: References: <87a9icobbl.fsf@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1381758319 8437 80.91.229.3 (14 Oct 2013 13:45:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Oct 2013 13:45:19 +0000 (UTC) Cc: emacs-devel@gnu.org, 15594@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 14 15:45:21 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VViSX-0001ae-KO for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Oct 2013 15:45:21 +0200 Original-Received: from localhost ([::1]:36913 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VViSX-0002CC-6X for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Oct 2013 09:45:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54142) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VViSM-0002Bl-NL for bug-gnu-emacs@gnu.org; Mon, 14 Oct 2013 09:45:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VViSF-000592-Cr for bug-gnu-emacs@gnu.org; Mon, 14 Oct 2013 09:45:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34581) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VViSF-00058i-9d for bug-gnu-emacs@gnu.org; Mon, 14 Oct 2013 09:45:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VViSE-0006fx-SG for bug-gnu-emacs@gnu.org; Mon, 14 Oct 2013 09:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 14 Oct 2013 13:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15594 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15594-submit@debbugs.gnu.org id=B15594.138175825625589 (code B ref 15594); Mon, 14 Oct 2013 13:45:02 +0000 Original-Received: (at 15594) by debbugs.gnu.org; 14 Oct 2013 13:44:16 +0000 Original-Received: from localhost ([127.0.0.1]:48598 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VViRT-0006ee-CS for submit@debbugs.gnu.org; Mon, 14 Oct 2013 09:44:15 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:35353) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VViRR-0006eO-2B for 15594@debbugs.gnu.org; Mon, 14 Oct 2013 09:44:13 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFFMCqeW/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCwsOJhIUGA0kiB4GwS2RCgOkeoFegxM X-IPAS-Result: Av8EABK/CFFMCqeW/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCwsOJhIUGA0kiB4GwS2RCgOkeoFegxM X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="35448000" Original-Received: from 76-10-167-150.dsl.teksavvy.com (HELO pastel.home) ([76.10.167.150]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 14 Oct 2013 09:40:05 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id B376C60A97; Mon, 14 Oct 2013 09:44:06 -0400 (EDT) In-Reply-To: <87a9icobbl.fsf@yandex.ru> (Dmitry Gutov's message of "Mon, 14 Oct 2013 05:06:38 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:79237 Archived-At: > 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