On Tue, 5 Sep 2006, Richard Fish wrote:

> Jorge,
> 
> Could I convince you to file a bug report on bugs.gentoo.org about that?
> 
Richard:

I tried, but the reproducibility issue is weird.
Take a look at this block of code:
        sub reloadlist{
                my $self=shift;
        #       my $logdir=$self->{'dir'};
                opendir(D,$logdir) || do{
                        print "Couldn\'t open directory ${logdir}: $!";
                        return 1;
                };
                my @heavy=grep(!/^\./, readdir(D));
                closedir D || do{
                        print "Couldn\'t close directory ${logdir}: $!";
                        return 1;
                };
                my %heavy=();
                my %numbers=();
                my @full=();
                for (@heavy){
                        /^[^_]*_(.*)/;
                        if(exists($numbers{$1})){
                                $numbers{$1}++;
                        }else{
                                $numbers{$1}=1;
                        }
                        push @full, "$1:$numbers{$1}:$_";
                        $heavy{$1}{$numbers{$1}}=$_;
                }
                @full=sort @full;
                $self->{'full'[EMAIL PROTECTED];
                $self->{'heavy'}=\%heavy;
                return 1;
        }
Sure enough, colours are wrong. But pressing 'o' with cursor on line 4
(in normal mode) produces a new line with proper indentation. The same
action in the block of code of my former email produced bad
indentation...
On the other hand, uncommenting line 3 brings right colours for lines
after 3 (but not for 2 and 3). 
There is no doubt that the file is wrong, but it seems difficult to
point the problem with accuracy.
If the package maintainer were reading this, the solution is simple: use
the current version:
        " Vim syntax file
        " Language:     Perl
        " Maintainer:   Nick Hibma <[EMAIL PROTECTED]>
        " Last Change:  2006 August 9
        " Location:     http://www.van-laarhoven.org/vim/syntax/perl.vim
        "
Regards,

Jorge 
-- 
gentoo-user@gentoo.org mailing list

Reply via email to