X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/b93feea4a4cd9bb503465ead1b73f89b8f36d429..219cb22723b29e968bc740d1f34b3b09265a9c08:/source.plp diff --git a/source.plp b/source.plp index 56193fb..2b13371 100644 --- a/source.plp +++ b/source.plp @@ -47,7 +47,7 @@ if (not $source) { say '\n"; } @@ -90,16 +90,16 @@ else { if (!$type || $type eq 'Constant' and $contents =~ s{^(['"]?)(/?[a-z0-9_.]+\.(?:plp?|css|js))(?=\1$)}{}) { # link other page sources, stylesheets, and javascript - printf '%s%s', $1, "/source/$2", $2; + print $1 . showlink($2, "/source/$2"); } if (!$type and $contents =~ s/^(\s*)([A-Z]\w+(?:::\w+)+)(?![^;\s])//) { # link perl module names (Xx::Xx...) - printf '%s%s', $1, "/source/$2", $2; + print $1 . showlink($2, "/source/$2"); } if ($type && $type eq 'Comment' and $contents =~ s{^(.*? by )(tools/\S+)}{}) { # link generator scripts (by tools/...) - printf '%s%s', $1, "/source/$2", $2; + print $1 . showlink($2, "/source/$2"); } print Text::VimColor::_xml_escape($contents); print "" if $tag;