Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
improve the documentation for the MSG_task_[send|receive]_* functions
[simgrid.git] / tools / tesh / colorize.pl
index 247c433..045ff68 100755 (executable)
@@ -3,9 +3,9 @@ use Term::ANSIColor qw{:constants};
 $Term::ANSIColor::AUTORESET = 1;
 
 while(<>){
-    if($_ =~ m/^[-]\s.*/){
+    if($_ =~ m/^(\d+\:\s)?[-]\s.*/){
        print BOLD RED $_;
-    }elsif ($_ =~ m/^[+]\s.*/){
+    }elsif ($_ =~ m/^(\d+\:\s)?[+]\s.*/){
        print BOLD GREEN $_;
     }else{
        print BOLD $_;