From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Da Witch Newsgroups: gmane.emacs.help Subject: Hacking cperl-mode Date: Wed, 30 Oct 2002 16:10:19 +0000 (UTC) Organization: Zero Sender: help-gnu-emacs-admin@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1035994607 843 80.91.224.249 (30 Oct 2002 16:16:47 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 30 Oct 2002 16:16:47 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 186vWQ-0000DR-00 for ; Wed, 30 Oct 2002 17:16:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 186vW5-00027G-00; Wed, 30 Oct 2002 11:16:25 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.uchicago.edu!newsswitch.lcs.mit.edu!bloom-beacon.mit.edu!panix!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 44 Original-NNTP-Posting-Host: panix3.panix.com Original-X-Trace: reader1.panix.com 1035994219 9369 166.84.1.3 (30 Oct 2002 16:10:19 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Wed, 30 Oct 2002 16:10:19 +0000 (UTC) X-No-Confirm: yes User-Agent: nn/6.6.4 Original-Xref: shelby.stanford.edu gnu.emacs.help:106564 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:3114 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:3114 Rummaging through Google groups, I came across this post: >"Michael P. Soulier" writes: >> One of the major things that I have to do with an editor is hack perl >> code. Perl-mode's syntax shading seems horrible, so I'm trying cperl-mode. >> It's better, but it still has problems with inline POD documentation, and it >> shades some things in comments even though it should be commented-out. >Hm. Does it help to switch to a more recent CPerl? >Ah, but it happens in the version I have, too. There's this entry in >font-lock-keywords: > ("\\(\\([@%]\\|$#\\)[a-zA-Z_:][a-zA-Z0-9_:]*\\)" > (1 > (if > (eq > (char-after > (match-beginning 2)) > 37) > cperl-hash-face cperl-array-face) > t)) >The final `t' means to even do it in comments -- maybe that's not >such a good idea. >kai I have two questions. 1. Is it possible to add something to my .emacs file that would in effect override cperl-mode to change that final `t' to `nil'? (I suppose I could just hack a copy cperl-mode.el, and rename it something like myperl-mode.el, but this is a problematic solution) 2. What does the '$' mean in the regexp above? The only meaning I know for '$' in a regexp is as the end-of-line anchor, but this interpretation doesn't make sense for this regexp. Thanks in advance, hk