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 r114545: * lisp/progmodes/ruby-mode.el: Fix recently added tests. Date: Mon, 07 Oct 2013 11:22:49 -0400 Message-ID: References: <874n8tz5d9.fsf@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1381159416 20967 80.91.229.3 (7 Oct 2013 15:23:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Oct 2013 15:23:36 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 07 17:23:40 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 1VTCeo-0008GG-E3 for ged-emacs-devel@m.gmane.org; Mon, 07 Oct 2013 17:23:38 +0200 Original-Received: from localhost ([::1]:60248 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTCen-0000a2-Ck for ged-emacs-devel@m.gmane.org; Mon, 07 Oct 2013 11:23:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46343) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTCeP-0000V6-Md for emacs-devel@gnu.org; Mon, 07 Oct 2013 11:23:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VTCe3-0004xx-4N for emacs-devel@gnu.org; Mon, 07 Oct 2013 11:23:13 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:8093) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTCe2-0004wu-Vf for emacs-devel@gnu.org; Mon, 07 Oct 2013 11:22:51 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFHO+K8t/2dsb2JhbABEvw4Xc4IeAQEEAVYjEAsOJhIUGA0kiB4GDMEhkQoDlymNUYFegxM X-IPAS-Result: Av4EABK/CFHO+K8t/2dsb2JhbABEvw4Xc4IeAQEEAVYjEAsOJhIUGA0kiB4GDMEhkQoDlymNUYFegxM X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="34931340" Original-Received: from 206-248-175-45.dsl.teksavvy.com (HELO pastel.home) ([206.248.175.45]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 07 Oct 2013 11:19:12 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id D554060C2E; Mon, 7 Oct 2013 11:22:49 -0400 (EDT) In-Reply-To: <874n8tz5d9.fsf@yandex.ru> (Dmitry Gutov's message of "Mon, 07 Oct 2013 14:29:22 +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:163947 Archived-At: >> a = foo(j, k) - >> - bar_tee >> + bar_tee > Hmm, that indentation looks meaningful, and it's even close to > implementing one of the long-standing feature requests > (http://bugs.ruby-lang.org/issues/5357), Indeed, it's the indentation style I see in most examples. >> +# FIXME: is this really valid Ruby? Isn't the newline after "foo" treated as >> +# an implicit semi-colon? >> foo >> .bar > It is, I guess it's the main exception to the newline termination rule. Is the newline termination rule documented somewhere? All I could find was discussions about the style, but no definitive clear definition of when a newline is treated as a semi-colon. Anyway, you can adjust ruby-smie--implicit-semi-p to reflect the "rule". Stefan