From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: jerome@marant.org (Jérôme Marant) Newsgroups: gmane.emacs.bugs Subject: Cperl-mode does not highlight function names properly Date: Fri, 25 Feb 2005 22:07:31 +0100 (CET) Message-ID: <20050225210731.91FEA2C03E@amboise> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1109365638 24692 80.91.229.2 (25 Feb 2005 21:07:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 25 Feb 2005 21:07:18 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 25 22:07:18 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D4meN-0005nL-Lc for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Feb 2005 22:05:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D4mwC-0005JG-Hs for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Feb 2005 16:23:52 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D4mvW-0004xS-L4 for bug-gnu-emacs@gnu.org; Fri, 25 Feb 2005 16:23:10 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D4mvQ-0004uz-NC for bug-gnu-emacs@gnu.org; Fri, 25 Feb 2005 16:23:10 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D4mvQ-0004uV-Al for bug-gnu-emacs@gnu.org; Fri, 25 Feb 2005 16:23:04 -0500 Original-Received: from [213.228.0.176] (helo=postfix4-2.free.fr) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D4mgh-0006gQ-Tn for bug-gnu-emacs@gnu.org; Fri, 25 Feb 2005 16:07:52 -0500 Original-Received: from amboise (unknown [82.227.97.206]) by postfix4-2.free.fr (Postfix) with ESMTP id B38122BEF0E for ; Fri, 25 Feb 2005 22:07:50 +0100 (CET) Original-Received: by amboise (Postfix, from userid 1000) id 91FEA2C03E; Fri, 25 Feb 2005 22:07:31 +0100 (CET) Original-To: bug-gnu-emacs@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org X-MailScanner-To: geb-bug-gnu-emacs@m.gmane.org Xref: main.gmane.org gmane.emacs.bugs:10803 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:10803 This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English, because the Emacs maintainers do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. In GNU Emacs 21.3.1 (powerpc-unknown-linux-gnu, X toolkit, Xaw3d scroll bars) of 2005-02-06 on voltaire, modified by Debian configured using `configure '--build=powerpc-linux' '--host=powerpc-linux' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--with-x=yes' '--with-x-toolkit=athena' 'CFLAGS=-DDEBIAN -g -O2' 'build_alias=powerpc-linux' 'host_alias=powerpc-linux'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: fr_FR@euro locale-coding-system: iso-latin-9 default-enable-multibyte-characters: t Please describe exactly what actions triggered the bug and the precise symptoms of the bug: Hi, Cperl-mode does not highlight properly function names that contain Perl keywords. Here is a test case. ------------ #!/usr/bin/perl sub test_read_file () { } sub func () { } ------------ You will notice that 'read' in test_read_file is highlighted as a keyword whereas 'func' is hightlighted as a function name. I could reproduce the problem with current CVS trunk as well. Cheers, Recent input: SPC SPC SPC q SPC SPC q C-x C-f A . p l a . p l M-x c p e r # ! / u s r / b i n / p e r l s u b SPC t e s t _ r e a d _ f i l e SPC ( ) [ { } s u b SPC t e s t SPC ( ) { } Recent messages: Suppressing duplicates...done Generating summary...done No more unread newsgroups (iconify-frame (#)) (make-frame-visible (#)) (New file) Loading perl-mode...done Loading cperl-mode...done Loading emacsbug...done