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#15874: 24.3.50; exit! not properly font-locked in ruby-mode Date: Thu, 05 Dec 2013 23:57:49 -0500 Message-ID: References: <8761r4bh8h.fsf@yandex.ru> <529FB799.3000203@yandex.ru> <529FF61B.4060709@yandex.ru> <87a9ge7l5q.fsf@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1386305895 14639 80.91.229.3 (6 Dec 2013 04:58:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Dec 2013 04:58:15 +0000 (UTC) Cc: 15874@debbugs.gnu.org, Bozhidar Batsov To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 06 05:58:19 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 1VonUZ-0005a9-I5 for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Dec 2013 05:58:19 +0100 Original-Received: from localhost ([::1]:57339 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VonUZ-00040i-2n for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Dec 2013 23:58:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53860) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VonUP-00040b-N3 for bug-gnu-emacs@gnu.org; Thu, 05 Dec 2013 23:58:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VonUI-0005Mi-BZ for bug-gnu-emacs@gnu.org; Thu, 05 Dec 2013 23:58:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47008) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VonUI-0005Me-7d for bug-gnu-emacs@gnu.org; Thu, 05 Dec 2013 23:58:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VonUH-0004NK-LB for bug-gnu-emacs@gnu.org; Thu, 05 Dec 2013 23:58:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Dec 2013 04:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15874 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15874-submit@debbugs.gnu.org id=B15874.138630587316803 (code B ref 15874); Fri, 06 Dec 2013 04:58:01 +0000 Original-Received: (at 15874) by debbugs.gnu.org; 6 Dec 2013 04:57:53 +0000 Original-Received: from localhost ([127.0.0.1]:32792 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VonU8-0004Mw-V7 for submit@debbugs.gnu.org; Thu, 05 Dec 2013 23:57:53 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:29396) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VonU7-0004Ml-1b for 15874@debbugs.gnu.org; Thu, 05 Dec 2013 23:57:51 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFFFxL6g/2dsb2JhbAA8CLs1g1kXc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtjRuDbwOIYZwZgV6DFQ X-IPAS-Result: Av8EABK/CFFFxL6g/2dsb2JhbAA8CLs1g1kXc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtjRuDbwOIYZwZgV6DFQ X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="41276516" Original-Received: from 69-196-190-160.dsl.teksavvy.com (HELO pastel.home) ([69.196.190.160]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 05 Dec 2013 23:57:50 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 13AAC603DC; Thu, 5 Dec 2013 23:57:49 -0500 (EST) In-Reply-To: <87a9ge7l5q.fsf@yandex.ru> (Dmitry Gutov's message of "Fri, 06 Dec 2013 04:44:49 +0200") 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:81491 Archived-At: > Not mandatory, just good for performance, AFAICT. Instead of maching all > identifiers that look like methods and then finding out that most of > them don't end with ? or ! anyway, it would be faster to scan the buffer > for ? or !, and then look a bit back and see if the text before such a > character resembles a method name. We can also do that, using a "[?!]" regexp and then do the "look a bit back" in Elisp. > That looks good, but, like you mentioned later, if we had a dedicated > backslash-sequence, it could also transparently handle the EOB case. > I guess, the question is, would it see much use. But then it would be a lot more special cased. > `regexp-opt' seems to be the primary use case to me. I think the second arg to `regexp-opt' is a misfeature. > irb(main):026:0> a = 5 > => 5 > irb(main):027:0> a?3:4 > SyntaxError: (irb):27: syntax error, unexpected ':', expecting $end > a?3:4 > ^ > from /home/gutov/.rbenv/versions/1.9.3-p429/bin/irb:12:in `
' Good. Stefan