From aa767a555b6aefc542cf62f390440fc4222db81d Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sun, 3 May 2015 15:35:02 +0300 Subject: Issue #23330: h2py now supports arbitrary filenames in #include. --- Misc/NEWS | 2 ++ Tools/scripts/h2py.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Misc/NEWS b/Misc/NEWS index ad958d8..99ed860 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -210,6 +210,8 @@ Documentation Tools/Demos ----------- +- Issue #23330: h2py now supports arbitrary filenames in #include. + - Issue #6639: Module-level turtle functions no longer raise TclError after closing the window. diff --git a/Tools/scripts/h2py.py b/Tools/scripts/h2py.py index c64501e..40b1bce 100755 --- a/Tools/scripts/h2py.py +++ b/Tools/scripts/h2py.py @@ -29,7 +29,7 @@ p_macro = re.compile( '^[\t ]*#[\t ]*define[\t ]+' '([a-zA-Z0-9_]+)\(([_a-zA-Z][_a-zA-Z0-9]*)\)[\t ]+') -p_include = re.compile('^[\t ]*#[\t ]*include[\t ]+<([a-zA-Z0-9_/\.]+)') +p_include = re.compile('^[\t ]*#[\t ]*include[\t ]+<([^>\n]+)>') p_comment = re.compile(r'/\*([^*]+|\*+[^/])*(\*+/)?') p_cpp_comment = re.compile('//.*') -- cgit v0.12