Changeset 5279


Ignore:
Timestamp:
06/17/09 20:48:13 (3 years ago)
Author:
azawawi
Message:

[Perl 6] STD error/warning parsing is now case insensitive. and added support for "Undeclared routine" warning.

File:
1 edited

Legend:

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

    r5278 r5279  
    184184        my $issues = []; 
    185185        for my $msg (@messages) { 
    186             if($msg =~ /^\#\#\#\#\# PARSE FAILED \#\#\#\#\#/) { 
     186            if($msg =~ /^\#\#\#\#\# PARSE FAILED \#\#\#\#\#/i) { 
    187187                # the following lines are errors until we see the warnings section 
    188188                $severity = 'E'; 
    189             } elsif($msg =~ /^Potential difficulties/) { 
     189            } elsif($msg =~ /^Potential difficulties/i) { 
    190190                # all rest are warnings... 
    191191                $severity = 'W'; 
     192            } elsif($msg =~ /^Undeclared routine/i) { 
     193                # all rest are warnings... 
     194                $severity = 'W'; 
     195            } elsif($msg =~ /^\s+(.+?)\s+used at (\d+)/i) { 
     196                # record the line number 
     197                $lineno = $2; 
    192198            } elsif($msg =~ /line (\d+):$/i) { 
    193199                # record the line number 
    194200                $lineno = $1; 
    195             } elsif($msg =~ /^Can't locate object method ".+?" via package "STD"/) { 
     201            } elsif($msg =~ /^Can't locate object method ".+?" via package "STD"/i) { 
    196202                # STD lex cache is corrupt... 
    197203                $msg = Wx::gettext("'STD Lex Cache' is corrupt. Please click on Plugins/Perl6/Cleanup STD Lex Cache and then re-open the file."); 
Note: See TracChangeset for help on using the changeset viewer.