diff options
author | Larry Hastings <larry@hastings.org> | 2014-01-07 20:41:53 (GMT) |
---|---|---|
committer | Larry Hastings <larry@hastings.org> | 2014-01-07 20:41:53 (GMT) |
commit | 61272b77b0792318105bbdb6887a029b6a1743da (patch) | |
tree | c7842926f7938056074e083347c03ebb244650cf /Tools/clinic | |
parent | 9026113fd4acbb2fb77a900ae7bd921eebcc29c4 (diff) | |
download | cpython-61272b77b0792318105bbdb6887a029b6a1743da.zip cpython-61272b77b0792318105bbdb6887a029b6a1743da.tar.gz cpython-61272b77b0792318105bbdb6887a029b6a1743da.tar.bz2 |
Issue #19273: The marker comments Argument Clinic uses have been changed
to improve readability.
Diffstat (limited to 'Tools/clinic')
-rwxr-xr-x | Tools/clinic/clinic.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Tools/clinic/clinic.py b/Tools/clinic/clinic.py index 5378a0b..421b9e3 100755 --- a/Tools/clinic/clinic.py +++ b/Tools/clinic/clinic.py @@ -291,10 +291,10 @@ class Language(metaclass=abc.ABCMeta): class PythonLanguage(Language): language = 'Python' - start_line = "#/*[{dsl_name}]" + start_line = "#/*[{dsl_name} input]" body_prefix = "#" - stop_line = "#[{dsl_name}]*/" - checksum_line = "#/*[{dsl_name} checksum: {checksum}]*/" + stop_line = "#[{dsl_name} start generated code]*/" + checksum_line = "#/*[{dsl_name} end generated code: checksum={checksum}]*/" def permute_left_option_groups(l): @@ -359,11 +359,12 @@ def permute_optional_groups(left, required, right): class CLanguage(Language): + body_prefix = "#" language = 'C' - start_line = "/*[{dsl_name}]" + start_line = "/*[{dsl_name} input]" body_prefix = "" - stop_line = "[{dsl_name}]*/" - checksum_line = "/*[{dsl_name} checksum: {checksum}]*/" + stop_line = "[{dsl_name} start generated code]*/" + checksum_line = "/*[{dsl_name} end generated code: checksum={checksum}]*/" def render(self, signatures): function = None |