From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#22241: 25.0.50; etags Ruby parser problems Date: Tue, 02 Feb 2016 20:16:17 +0200 Message-ID: <8360y7yo3y.fsf@gnu.org> References: <86r3i9hnbt.fsf@yandex.ru> <83si1o45g1.fsf@gnu.org> <56A3C53D.1050408@yandex.ru> <83oacc3yx7.fsf@gnu.org> <56A3D47E.3030802@yandex.ru> <83mvrw3tuj.fsf@gnu.org> <56A3F3F9.8030404@yandex.ru> <8360yj3rtf.fsf@gnu.org> <83k2mrw952.fsf@gnu.org> <56AD33CF.6060105@yandex.ru> <83h9hu4dy8.fsf@gnu.org> <56AD9EF3.3080104@yandex.ru> <83powh1uwh.fsf@gnu.org> <56AF1A0E.7080802@yandex.ru> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1454437050 31946 80.91.229.3 (2 Feb 2016 18:17:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Feb 2016 18:17:30 +0000 (UTC) Cc: 22241@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 02 19:17:18 2016 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 1aQfVn-0006Ns-RM for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Feb 2016 19:17:11 +0100 Original-Received: from localhost ([::1]:58875 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQfVn-0000Mz-6S for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Feb 2016 13:17:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35196) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQfVh-0000IS-A2 for bug-gnu-emacs@gnu.org; Tue, 02 Feb 2016 13:17:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQfVe-0001Oc-2e for bug-gnu-emacs@gnu.org; Tue, 02 Feb 2016 13:17:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48438) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQfVd-0001OX-VS for bug-gnu-emacs@gnu.org; Tue, 02 Feb 2016 13:17:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aQfVd-0007ho-Rf for bug-gnu-emacs@gnu.org; Tue, 02 Feb 2016 13:17:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 Feb 2016 18:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22241 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22241-submit@debbugs.gnu.org id=B22241.145443700729592 (code B ref 22241); Tue, 02 Feb 2016 18:17:01 +0000 Original-Received: (at 22241) by debbugs.gnu.org; 2 Feb 2016 18:16:47 +0000 Original-Received: from localhost ([127.0.0.1]:57027 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aQfVO-0007hE-UM for submit@debbugs.gnu.org; Tue, 02 Feb 2016 13:16:47 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:44026) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aQfVN-0007h3-Ut for 22241@debbugs.gnu.org; Tue, 02 Feb 2016 13:16:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQfVF-0001Al-NO for 22241@debbugs.gnu.org; Tue, 02 Feb 2016 13:16:40 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56805) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQfVF-0001Ah-Jk; Tue, 02 Feb 2016 13:16:37 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2228 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aQfVE-0006aM-Tt; Tue, 02 Feb 2016 13:16:37 -0500 In-reply-to: <56AF1A0E.7080802@yandex.ru> (message from Dmitry Gutov on Mon, 1 Feb 2016 11:40:46 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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:112280 Archived-At: > Cc: 22241@debbugs.gnu.org > From: Dmitry Gutov > Date: Mon, 1 Feb 2016 11:40:46 +0300 > > On 01/31/2016 09:11 PM, Eli Zaretskii wrote: > > > Ah, so it _is_ important. > > It kind of is. But I can open a separate bug for it, if you want. > > > But then I'd need a complete specification > > of what is needed. (And I already smell a tip of an iceberg.) Again, > > the references are scarce and incomplete, but I already understand > > that it could be either of the following > > > > attr_WHATEVER :foo > > SOMETHING ; attr_WHATEVER :foo ; ... > > attr_WHATEVER :foo, :bar; ... > > > > Is that true? Are there any other forms, or can the symbol be > > followed only by a comma, a semi-colon, or whitespece? > > The newline might also be preceded by a comment, I suppose. > > But really, if recognizing attr_WHATEVER when it's just one of the > instructions on a line presents a noticeable difficulty, you can > disregard that case: nobody really does that in practice. Or we can > disregard it at least until somebody complains. > > So you would handle > > attr_WHATEVER :foo, :bar # comment > > and probably > > attr_WHATEVER :bar; > > (the semicolon is redundant, but hey, it shouldn't be too hard to support) > > and the most difficult realistic case I can imagine looks like this: > > attr_WHATEVER :foo, :bar, # comment > :qux, :tee OK, this is all implemented, except... > > And what ends > > a line like that -- a newline, or can it be continued on the next > > line? > > If there's a comma at the end of the current line, the argument list > continues on the next one. ...this. If supporting such split definitions is important, it will need a slightly more complex code. > Let's go with my original suggestions, then: > > .rb .ru .rbw Rakefile Thorfile Also done (and doing so exposed a real bug in etags). Please take a look.