Browse Source

Issue #23330: h2py now supports arbitrary filenames in #include.

pull/9921/head
Serhiy Storchaka 11 years ago
parent
commit
b9c04db64f
  1. 3
      Misc/NEWS
  2. 2
      Tools/scripts/h2py.py

3
Misc/NEWS

@ -254,8 +254,11 @@ Documentation
Tools/Demos
-----------
- Issue #23330: h2py now supports arbitrary filenames in #include.
- Issue #24031: make patchcheck now supports git checkouts, too.
What's New in Python 3.4.3?
===========================

2
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('//.*')

Loading…
Cancel
Save