X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/b27b281bae08c81b79217a6f7ed5dfa2654f4239..b3b71de70835c9edbdf320035d5bb54d4c31db46:/source.plp diff --git a/source.plp b/source.plp index e07087d..863ef35 100644 --- a/source.plp +++ b/source.plp @@ -122,6 +122,9 @@ else { # link other page sources, stylesheets, and javascript $line =~ s{ ^(['"]?) \K ($incname) (?=\1$) }{ showlink($2, "/source/$2") }xe if !$type || $type eq 'Constant'; + # link relative page locations in html output + $line =~ s{ ^(")\K (/\w+) (?= (?:/\w+)* \1$) }{ showlink($2, "/source$2.plp") }xe + if $type && $type eq 'Constant'; # link perl module names (Xx::Xx...) $line =~ s{ ^\s* \K ([A-Z]\w+(?:::\w+)+) (?![^;\s]) }{ showlink($1, "/source/$1") }xe if !$type;