mirror of
https://github.com/python/cpython.git
synced 2024-11-26 19:34:19 +08:00
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
Block a user