mirror of https://github.com/python/cpython
do_cmd_versionadded(),
do_cmd_versionchanged(): Support for new macros.
This commit is contained in:
parent
af958c7be2
commit
897d12bb87
|
@ -225,6 +225,20 @@ sub do_cmd_deprecated{
|
|||
"<b>Deprecated since release $release.</b>\n$reason<p>" . $_;
|
||||
}
|
||||
|
||||
sub do_cmd_versionadded{
|
||||
# one parameter: \versionadded{version}
|
||||
local($_) = @_;
|
||||
my $release = next_argument();
|
||||
"<b>New in version $release.</b><p>" . $_;
|
||||
}
|
||||
|
||||
sub do_cmd_versionchanged{
|
||||
# one parameter: \versionchanged{version}
|
||||
local($_) = @_;
|
||||
my $release = next_argument();
|
||||
"<b>Changed in version $release.</b><p>" . $_;
|
||||
}
|
||||
|
||||
# file and samp are at the end of this file since they screw up fontlock.
|
||||
|
||||
# index commands
|
||||
|
|
Loading…
Reference in New Issue