all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: jerome@marant.org (Jérôme Marant)
Subject: Cperl-mode does not highlight function names properly
Date: Fri, 25 Feb 2005 22:07:31 +0100 (CET)	[thread overview]
Message-ID: <20050225210731.91FEA2C03E@amboise> (raw)

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:
<down> SPC <down> SPC <down> SPC q SPC SPC q <help-echo> 
C-x C-f A . p l <backspace> <backspace> <backspace> 
<backspace> a . p l <return> M-x c p e r <tab> <return> 
# ! / u s r / b i n / p e r l <return> <return> s u 
b SPC t e s t _ r e a d _ f i l e SPC ( ) <return> 
[ <backspace> { <return> <return> } <return> <return> 
s u b SPC t e s t SPC ( ) <return> { <return> <return> 
} <help-echo> <down-mouse-1> <M-mouse-1> <C-down-m
ouse-3>

Recent messages:
Suppressing duplicates...done
Generating summary...done
No more unread newsgroups
(iconify-frame (#<frame emacs21@amboise 0x1cb79a0\ >))
(make-frame-visible (#<frame emacs21@amboise 0x1cb79a0\ >))
(New file)
Loading perl-mode...done
Loading cperl-mode...done

Loading emacsbug...done

             reply	other threads:[~2005-02-25 21:07 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-25 21:07 Jérôme Marant [this message]
     [not found] <mailman.1704.1109366592.32256.bug-gnu-emacs@gnu.org>
2005-02-26  2:38 ` Cperl-mode does not highlight function names properly Stefan Monnier
2005-02-26  8:21   ` Jérôme Marant
2005-02-26 16:54     ` Stefan Monnier
2005-02-26 17:01       ` Jérôme Marant
2005-02-27 16:10       ` Mark Plaksin
2005-02-27  0:33     ` Richard Stallman
2005-02-27  8:40       ` Jérôme Marant
2005-02-28 20:09 ` Radomir Hejl
2005-02-28 22:28   ` Jérôme Marant
2005-03-02 11:22   ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050225210731.91FEA2C03E@amboise \
    --to=jerome@marant.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.