From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: 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 1381758269 7829 80.91.229.3 (14 Oct 2013 13:44:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Oct 2013 13:44:29 +0000 (UTC) Cc: 15594@debbugs.gnu.org, emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 14 15:44:29 2013 Return-path: Envelope-to: ged-emacs-devel@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 1VViRg-00014d-27 for ged-emacs-devel@m.gmane.org; Mon, 14 Oct 2013 15:44:28 +0200 Original-Received: from localhost ([::1]:36908 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VViRf-0001id-NA for ged-emacs-devel@m.gmane.org; Mon, 14 Oct 2013 09:44:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53799) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VViRV-0001hz-P4 for emacs-devel@gnu.org; Mon, 14 Oct 2013 09:44:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VViRM-0004oe-4q for emacs-devel@gnu.org; Mon, 14 Oct 2013 09:44:17 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:35349) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VViRL-0004oR-Rc for emacs-devel@gnu.org; Mon, 14 Oct 2013 09:44:08 -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-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:164202 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