[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Perl-mode scanning bug
From: |
Martin Jost |
Subject: |
Re: Perl-mode scanning bug |
Date: |
Wed, 17 Oct 2001 13:00:07 +0200 |
David Allen wrote:
>
> Typing this code into emacs using perl-mode results in a parenthesis
> mismatch error, despite the fact that it's valid perl syntax:
>
> if(my $user = ${$self->{'logins'}->{$username}}) {
> # Whatever...
> }
>
> At the last '}' before the end of the 'if' condition, it flags that
> character as a mismatched parenthesis, and incorrectly indents all
> code after that point. Perl doesn't care of course since it's valid
> syntax, but it's quite annoying, since it forces you to use another
> dereferencing idiom. I like to use ${ $ref }.
> ||/ Name Version Description
> +++-==============-==============-============================================
> ii emacs20 20.7-10.1 The GNU Emacs editor.
>
> /build/buildd/emacs20-20.7/debian/tmp-emacs/usr/share/emacs/20.7/lisp/progmodes/perl-mode.el
I would try to use 'cperl-mode' instead of 'perl-mode'.
cperl-mode comes with 20.7, so you should be able to just switch to
this package.
HTH (cperl-mode usually does :-)
Martin