From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vincent Lefevre Newsgroups: gmane.emacs.bugs Subject: bug#11739: 24.1; font-lock (highlighting) bug with dollar+quote sequence ('...$') Date: Tue, 19 Jun 2012 15:15:23 +0200 Message-ID: <20120619131523.GA17701@xvii.vinc17.org> References: <87d34vwqfc.fsf@ypig.lip.ens-lyon.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1340111760 21398 80.91.229.3 (19 Jun 2012 13:16:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 19 Jun 2012 13:16:00 +0000 (UTC) To: 11739@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 19 15:15:57 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 1SgyHh-0000Hn-PC for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Jun 2012 15:15:53 +0200 Original-Received: from localhost ([::1]:59530 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SgyHh-00022W-NE for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Jun 2012 09:15:53 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51759) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SgyHb-00022O-1G for bug-gnu-emacs@gnu.org; Tue, 19 Jun 2012 09:15:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SgyHV-0003f3-Ce for bug-gnu-emacs@gnu.org; Tue, 19 Jun 2012 09:15:46 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38688) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SgyHV-0003ey-2u for bug-gnu-emacs@gnu.org; Tue, 19 Jun 2012 09:15:41 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SgyKk-0005Ns-3t for bug-gnu-emacs@gnu.org; Tue, 19 Jun 2012 09:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Vincent Lefevre Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Jun 2012 13:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11739 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11739-submit@debbugs.gnu.org id=B11739.134011193920688 (code B ref 11739); Tue, 19 Jun 2012 13:19:02 +0000 Original-Received: (at 11739) by debbugs.gnu.org; 19 Jun 2012 13:18:59 +0000 Original-Received: from localhost ([127.0.0.1]:48234 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SgyKb-0005NX-UF for submit@debbugs.gnu.org; Tue, 19 Jun 2012 09:18:58 -0400 Original-Received: from vinc17.pck.nerim.net ([213.41.242.187]:50453 helo=smtp-xvii.vinc17.net) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SgyKU-0005NJ-Tu for 11739@debbugs.gnu.org; Tue, 19 Jun 2012 09:18:52 -0400 Original-Received: by xvii.vinc17.org (Postfix, from userid 1000) id 07F3D34C01B; Tue, 19 Jun 2012 15:15:23 +0200 (CEST) Content-Disposition: inline In-Reply-To: <87d34vwqfc.fsf@ypig.lip.ens-lyon.fr> X-Mailer-Info: http://www.vinc17.net/mutt/ User-Agent: Mutt/1.5.21-6205-vl-r52214 (2012-05-24) 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:61111 Archived-At: On 2012-06-19 12:23:51 +0200, Vincent Lefevre wrote: > Open the following file with "emacs -Q ": >=20 > ------------------------------------------------------------ > #!/usr/bin/env perl > # -*- mode: cperl -*- >=20 > $foo =3D 'blah $ ' > and print "$foo\n"; # OK >=20 > $foo =3D 'blah $' > and print "$foo\n"; # Incorrectly highlighted > ------------------------------------------------------------ >=20 > 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. The problem is due to this change in cperl-mode.el: @@ -1832,7 +1832,13 @@ (make-local-variable 'cperl-syntax-state) (setq cperl-syntax-state nil) ; reset syntaxification c= ache (if cperl-use-syntax-table-text-property - (progn + (if (boundp 'syntax-propertize-function) + (progn + ;; Reset syntaxification cache. + (set (make-local-variable 'cperl-syntax-done-to) nil) + (set (make-local-variable 'syntax-propertize-function) + (lambda (start end) + (goto-char start) (cperl-fontify-syntaxically end)))) (make-local-variable 'parse-sexp-lookup-properties) ;; Do not introduce variable if not needed, we check it! (set 'parse-sexp-lookup-properties t) --=20 Vincent Lef=E8vre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)