Testing is done by the doctests.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
&\& => & general escaping mechanism
&\$ => $
+&$VARIABLE => $(sub_dir_VARIABLE) or $(TOP_VARIABLE)
+ VARIABLE is ASCII starting with a letter and matching \w+
+
& thing thing... &
&^ thing thing... &
&~ thing thing... &
$targets->{$t} //= [ ];
}
elsif (m{^(?=$caps_re)}) { o $var_prefix }
+ elsif (s{^\$([A-Za-z]\w+)}{}) { o "\$(${var_prefix}$1)" }
elsif (s{^([~^]?)(?=$lc_re)}{}) { o $pfxmap{$1} }
elsif (s{^_}{}) { o $var_prefix }
elsif (s{^=}{}) { o $var_prefix_name }