From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: merlyn@stonehenge.com (Randal L. Schwartz) Newsgroups: gmane.emacs.devel Subject: Re: cperl mode comments still parsed and colored Date: Sun, 19 Aug 2007 10:37:09 -0700 Organization: Stonehenge Consulting Services; Portland, Oregon, USA Message-ID: <86ps1jv322.fsf@blue.stonehenge.com> References: <87lkca8m6i.fsf@jidanni.org> <87y7g8waul.fsf@jidanni.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1187545052 24776 80.91.229.12 (19 Aug 2007 17:37:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 19 Aug 2007 17:37:32 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 19 19:37:28 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IMoiK-0005CB-N6 for ged-emacs-devel@m.gmane.org; Sun, 19 Aug 2007 19:37:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IMoiK-0001BK-An for ged-emacs-devel@m.gmane.org; Sun, 19 Aug 2007 13:37:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IMoiG-00018p-IQ for emacs-devel@gnu.org; Sun, 19 Aug 2007 13:37:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IMoiF-00017r-Px for emacs-devel@gnu.org; Sun, 19 Aug 2007 13:37:19 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IMoiF-00017a-ES for emacs-devel@gnu.org; Sun, 19 Aug 2007 13:37:19 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IMoiE-0004dQ-Ry for emacs-devel@gnu.org; Sun, 19 Aug 2007 13:37:19 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IMoiA-0001s1-NU for emacs-devel@gnu.org; Sun, 19 Aug 2007 19:37:14 +0200 Original-Received: from blue.stonehenge.com ([209.223.236.162]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 19 Aug 2007 19:37:14 +0200 Original-Received: from merlyn by blue.stonehenge.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 19 Aug 2007 19:37:14 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 35 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: blue.stonehenge.com x-mayan-date: Long count = 12.19.14.10.9; tzolkin = 3 Muluc; haab = 17 Yaxkin User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (berkeley-unix) Cancel-Lock: sha1:C2ty2zCCmLxkMvrcTBHcXhngPIk= X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:76765 Archived-At: >>>>> "jidanni" == jidanni writes: jidanni> bla /m #-*-cperl-*- jidanni> #h /Delivery jidanni> # \@m jidanni> #Save this message body into a file bla.pl and do emacs -Q bla.pl, to jidanni> #see more of my discoveries which I hereby report as bugs. Real jidanni> #comment color is [this color]. Above you can see I have tricked cperl jidanni> #mode into making things in comments render in non comment colors. jidanni> #Syntax errors or not, like \@m. You've got gibberish there. I could see Perl trying to parse that as bla (function, taking arguments...) / (begin of regex) m #-*-cperl-*- (content of regex) so it's not a comment yet. If you can show a reasonable Perl program that breaks, it'd be much more interesting. Gibberish in, Gibberish out. It's like you'd claim that: q{ # this is a comment when in fact it's not a comment. It's part of a single-quoted string. Don't be naive about Perl if you're going to report bugs in cperl-mode. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!