diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-05-03 12:35:14 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-05-03 12:35:14 (GMT) |
commit | b9c04db64fd0315a30c4360d7ad33b975d5fbfc1 (patch) | |
tree | 6808962bfec78dbf717d903a2893984b3988e3dd /Tools/scripts | |
parent | 122f4b1bda8262ace6aa021935e8c605a17c3748 (diff) | |
download | cpython-b9c04db64fd0315a30c4360d7ad33b975d5fbfc1.zip cpython-b9c04db64fd0315a30c4360d7ad33b975d5fbfc1.tar.gz cpython-b9c04db64fd0315a30c4360d7ad33b975d5fbfc1.tar.bz2 |
Issue #23330: h2py now supports arbitrary filenames in #include.
Diffstat (limited to 'Tools/scripts')
-rwxr-xr-x | Tools/scripts/h2py.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/scripts/h2py.py b/Tools/scripts/h2py.py index 4f871d9..0967fc2 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('//.*') |