Changeset 14393
- Timestamp:
- 2022-04-11T01:21:22Z (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/c17_branch/source/todo_search.pl
r6023 r14393 49 49 50 50 # If line has TODO 51 if($line =~/TODO/ && $flag == 0){51 if($line =~/TODO/i && $flag == 0){ 52 52 # Retrieving the priority 53 53 $line_no = $countline; 54 54 $priority = $line; 55 $priority =~s/(.*TODO\ t)(\d*)(\t.*)/$2/;55 $priority =~s/(.*TODO\s*)(\d*)(\s.*)/$2/i; 56 56 $priority =~s/\n$//; 57 57 58 $comment = $line; 58 $comment =~s/(.*TODO\t$priority\t)(.*)/$2/; 59 if( $priority ne '' ) 60 { 61 $comment =~s/(.*TODO\s+$priority)(.*)/$2/i; 62 } 63 else 64 { 65 $comment =~s/(.*TODO\s+)(.*)/$2/i; 66 } 67 $comment =~s/^\s*-\s+//; 59 68 $comment =~s/\*\///; 69 $comment =~s/\/\*\*//; 60 70 $comment =~s/\t*//gi; 61 71 $prev = join '',$prev,$comment; 62 72 63 73 # Checks if TODO comments extend more than one line 64 if($line !~/\*\// ){74 if($line !~/\*\// and $line !~ m/\/\// ){ 65 75 $flag = 1; 66 } 76 } 67 77 else{ # Print into output temporary file 68 78 print TEMPFILE "$priority\t$sourcefile\t$line_no\t$prev"; … … 116 126 open(FINAL, "< $finalout"); 117 127 while(<FINAL>){ 128 next if $_ =~ m/^#+$/; 118 129 $_=~s/\t/\<\/TD\>\<TD\>/g; #formatting the data into rows and columns 119 130 print FHTM "<TR><TD>$_</TD></TR>"
Note: See TracChangeset
for help on using the changeset viewer.