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#11739: 24.1; font-lock (highlighting) bug with dollar+quote sequence ('...$') Date: Thu, 21 Jun 2012 12:52:52 -0400 Message-ID: References: <87d34vwqfc.fsf@ypig.lip.ens-lyon.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1340297620 800 80.91.229.3 (21 Jun 2012 16:53:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 21 Jun 2012 16:53:40 +0000 (UTC) Cc: 11739-done@debbugs.gnu.org To: Vincent Lefevre Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 21 18:53:39 2012 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 1ShkdW-0004jb-VC for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Jun 2012 18:53:39 +0200 Original-Received: from localhost ([::1]:42692 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShkdX-0000yV-0p for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Jun 2012 12:53:39 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60061) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShkdP-0000xG-Md for bug-gnu-emacs@gnu.org; Thu, 21 Jun 2012 12:53:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ShkdN-00028W-AA for bug-gnu-emacs@gnu.org; Thu, 21 Jun 2012 12:53:31 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42327) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShkdN-00028H-6T for bug-gnu-emacs@gnu.org; Thu, 21 Jun 2012 12:53:29 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Shkgo-0000SR-A8 for bug-gnu-emacs@gnu.org; Thu, 21 Jun 2012 12:57:02 -0400 Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Jun 2012 16:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 11739 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 11739@debbugs.gnu.org, monnier@IRO.UMontreal.CA Original-Received: via spool by 11739-done@debbugs.gnu.org id=D11739.13402977901711 (code D ref 11739); Thu, 21 Jun 2012 16:57:02 +0000 Original-Received: (at 11739-done) by debbugs.gnu.org; 21 Jun 2012 16:56:30 +0000 Original-Received: from localhost ([127.0.0.1]:51868 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ShkgI-0000RY-4Z for submit@debbugs.gnu.org; Thu, 21 Jun 2012 12:56:30 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:37583) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ShkgG-0000RR-Fb for 11739-done@debbugs.gnu.org; Thu, 21 Jun 2012 12:56:29 -0400 Original-Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q5LGqsPt023784; Thu, 21 Jun 2012 12:52:54 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id ABDB5B422C; Thu, 21 Jun 2012 12:52:53 -0400 (EDT) In-Reply-To: <87d34vwqfc.fsf@ypig.lip.ens-lyon.fr> (Vincent Lefevre's message of "Tue, 19 Jun 2012 12:23:51 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4257=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4257> : streams <771584> : uri <1145522> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:61174 Archived-At: > The first "and print ..." line is correctly highlighted, but not the > second one. It seems that CPerl is confused by a $ at the end of a > single-quote string literal. Actually, cperl recognizes these just fine, but there was some miscommunication between cperl and syntax-propertize so one ended up removing something expecting the other would refresh it, but without telling it. It should be fixed now on the emacs-24 branch. Stefan --- lisp/progmodes/cperl-mode.el 2012-01-19 07:21:25 +0000 +++ lisp/progmodes/cperl-mode.el 2012-06-21 16:41:01 +0000 @@ -8951,11 +8951,12 @@ (setq cperl-syntax-done-to (min cperl-syntax-done-to beg)))) (defun cperl-update-syntaxification (from to) - (if (and cperl-use-syntax-table-text-property - cperl-syntaxify-by-font-lock + (cond + ((not cperl-use-syntax-table-text-property) nil) + ((fboundp 'syntax-propertize) (syntax-propertize to)) + ((and cperl-syntaxify-by-font-lock (or (null cperl-syntax-done-to) (< cperl-syntax-done-to to))) - (progn (save-excursion (goto-char from) (cperl-fontify-syntaxically to)))))