Changeset 5410


Ignore:
Timestamp:
06/20/09 05:52:32 (3 years ago)
Author:
azawawi
Message:

[Perl 6] Quick fix for 'Use ~ instead of . for string concatenation'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre-Plugin-Perl6/lib/Padre/Plugin/Perl6/Perl6Document.pm

    r5409 r5410  
    202202            my $issue_msg = $issue->{msg}; 
    203203            my $comment_error_action = 0; 
    204             if($issue_msg =~ /Variable\s+(.+?)\s+is not predeclared at/i) { 
     204            if($issue_msg =~ /^\s*Variable\s+(.+?)\s+is not predeclared at/i) { 
    205205                 
    206206                my $var_name = $1; 
     
    241241                $comment_error_action = 1; 
    242242             
     243            } elsif($issue_msg =~ /^Obsolete use of . to concatenate strings/i) { 
     244 
     245                Wx::Event::EVT_MENU( 
     246                    $main,  
     247                    $menu->Append( -1, Wx::gettext("Use ~ instead of . for string concatenation") ), 
     248                    sub {  
     249                        #XXX-implement use ~ instead of . for string concatenation 
     250                    }, 
     251                ); 
     252                $comment_error_action = 1; 
     253             
    243254            } 
    244255             
Note: See TracChangeset for help on using the changeset viewer.