mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
Don't underline leading comment lines that contain ::.
This commit is contained in:
parent
3529b35da0
commit
97b0635d1e
@ -28,8 +28,12 @@ while (<FILEIN>)
|
|||||||
print FILEOUT "\n\n" if $start;
|
print FILEOUT "\n\n" if $start;
|
||||||
$_ = $1;
|
$_ = $1;
|
||||||
if ($_ =~ s/\s*\*\/$//) { $found = 'sorta'; } else { $found = $.; }
|
if ($_ =~ s/\s*\*\/$//) { $found = 'sorta'; } else { $found = $.; }
|
||||||
|
if ($_ =~ /::/) { $_ = "$_\n\n"; }
|
||||||
|
else
|
||||||
|
{
|
||||||
my $dash; for (my $x = 0; $x < length($_); $x++) { $dash .= '-'; }
|
my $dash; for (my $x = 0; $x < length($_); $x++) { $dash .= '-'; }
|
||||||
$_ = "$_\n$dash\n\n";
|
$_ = "$_\n$dash\n\n";
|
||||||
|
}
|
||||||
$first = 1;
|
$first = 1;
|
||||||
}
|
}
|
||||||
elsif ($_ =~ /\s*([A-Z0-9_]+),\s*\/\*::\s*(.*)\s+\*\/$/)
|
elsif ($_ =~ /\s*([A-Z0-9_]+),\s*\/\*::\s*(.*)\s+\*\/$/)
|
||||||
|
Loading…
Reference in New Issue
Block a user