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: Sun, 31 Jan 2016 20:01:15 +0200 Message-ID: <83r3gx1vdg.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> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1454263341 21208 80.91.229.3 (31 Jan 2016 18:02:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 31 Jan 2016 18:02:21 +0000 (UTC) Cc: 22241@debbugs.gnu.org To: dgutov@yandex.ru Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jan 31 19:02:10 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 1aPwKA-0006Ag-61 for geb-bug-gnu-emacs@m.gmane.org; Sun, 31 Jan 2016 19:02:10 +0100 Original-Received: from localhost ([::1]:42679 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPwK9-00080S-Ep for geb-bug-gnu-emacs@m.gmane.org; Sun, 31 Jan 2016 13:02:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34588) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPwK5-000800-SK for bug-gnu-emacs@gnu.org; Sun, 31 Jan 2016 13:02:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aPwK2-0003Ov-Mk for bug-gnu-emacs@gnu.org; Sun, 31 Jan 2016 13:02:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55193) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPwK2-0003Oq-JL for bug-gnu-emacs@gnu.org; Sun, 31 Jan 2016 13:02:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aPwK2-0000SG-83 for bug-gnu-emacs@gnu.org; Sun, 31 Jan 2016 13:02:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 31 Jan 2016 18:02:02 +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.14542633121722 (code B ref 22241); Sun, 31 Jan 2016 18:02:02 +0000 Original-Received: (at 22241) by debbugs.gnu.org; 31 Jan 2016 18:01:52 +0000 Original-Received: from localhost ([127.0.0.1]:43413 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aPwJs-0000Ri-Bg for submit@debbugs.gnu.org; Sun, 31 Jan 2016 13:01:52 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:43537) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aPwJr-0000RU-Ct for 22241@debbugs.gnu.org; Sun, 31 Jan 2016 13:01:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aPwJj-0003KV-7s for 22241@debbugs.gnu.org; Sun, 31 Jan 2016 13:01:46 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42208) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPwJj-0003KR-4i; Sun, 31 Jan 2016 13:01:43 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4145 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aPwJi-0001A0-ED; Sun, 31 Jan 2016 13:01:42 -0500 In-reply-to: <83h9hu4dy8.fsf@gnu.org> (message from Eli Zaretskii on Sun, 31 Jan 2016 05:37:03 +0200) 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:112151 Archived-At: > Date: Sun, 31 Jan 2016 05:37:03 +0200 > From: Eli Zaretskii > Cc: 22241@debbugs.gnu.org > > > Second: a minor thing. If I remove the space after '=', 'ABC =4' doesn't > > get recorded. > > Will fix. But that was a trap, wasn't it? What can legitimately follow the '+', in addition to whitespace? (It's amazing, but among all the gazillion references to Ruby, I cannot easily find a formal description of its syntax.) According to this rare gem: https://en.wikibooks.org/wiki/Ruby_Programming/Syntax (assuming I understand what it says), the RHS can be any literal, and also any constant expression, is that right? If so, either (a) we recognize only '^[ \t]([A-Z][a-z0-9_])*[ \t]*=' and get potential false positives on the likes of ABC == SOMETHING ABC =< WHATEVER etc. (are these possible?); or (b) you tell me which characters can potentially follow the '=' in an assignment of a constant. My current best guess for the latter is this: " # % \' ( + - < ? [ { 0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z And if we go the latter way, there are still multi-line expressions that I think are way too much. Ugh!