mirror of https://github.com/python/cpython
do_cmd_refbimodindex(), do_cmd_refstmodindex(): New functions, handle the
reference form of \bimodindex{} and \stmodindex{}. my_parword_index_helper(): Fixed to include proper anchor in result text.
This commit is contained in:
parent
0721358969
commit
72df9bcba2
|
@ -150,8 +150,7 @@ sub my_parword_index_helper{
|
||||||
local($word, $_) = @_;
|
local($word, $_) = @_;
|
||||||
s/$next_pair_pr_rx//o;
|
s/$next_pair_pr_rx//o;
|
||||||
local($br_id, $str) = ($1, $2);
|
local($br_id, $str) = ($1, $2);
|
||||||
&make_index_entry($br_id, "$str ($word)");
|
&make_index_entry($br_id, "$str ($word)") . $_;
|
||||||
$_;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sub do_cmd_bifuncindex{ &my_parword_index_helper('built-in function', @_); }
|
sub do_cmd_bifuncindex{ &my_parword_index_helper('built-in function', @_); }
|
||||||
|
@ -159,6 +158,9 @@ sub do_cmd_bimodindex{ &my_parword_index_helper('built-in module', @_); }
|
||||||
sub do_cmd_stmodindex{ &my_parword_index_helper('standard module', @_); }
|
sub do_cmd_stmodindex{ &my_parword_index_helper('standard module', @_); }
|
||||||
sub do_cmd_bifuncindex{ &my_parword_index_helper('standard module', @_); }
|
sub do_cmd_bifuncindex{ &my_parword_index_helper('standard module', @_); }
|
||||||
|
|
||||||
|
sub do_cmd_refbimodindex{ &my_parword_index_helper('built-in module', @_); }
|
||||||
|
sub do_cmd_refstmodindex{ &my_parword_index_helper('standard module', @_); }
|
||||||
|
|
||||||
sub do_cmd_nodename{ &do_cmd_label(@_); }
|
sub do_cmd_nodename{ &do_cmd_label(@_); }
|
||||||
|
|
||||||
$any_next_pair_rx3 = "$O(\\d+)$C([\\s\\S]*)$O\\3$C";
|
$any_next_pair_rx3 = "$O(\\d+)$C([\\s\\S]*)$O\\3$C";
|
||||||
|
|
Loading…
Reference in New Issue