Skip to content

Commit d2a694c

Browse files
Issue python#23330: h2py now supports arbitrary filenames in #include.
2 parents 24559e4 + b9c04db commit d2a694c

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎Misc/NEWS‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,11 @@ Documentation
6565
Tools/Demos
6666
-----------
6767

68+
- Issue #23330: h2py now supports arbitrary filenames in #include.
69+
6870
- Issue #24031: make patchcheck now supports git checkouts, too.
6971

72+
7073
What's New in Python 3.5.0 alpha 4?
7174
===================================
7275

‎Tools/scripts/h2py.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
'^[\t ]*#[\t ]*define[\t ]+'
3030
'([a-zA-Z0-9_]+)\(([_a-zA-Z][_a-zA-Z0-9]*)\)[\t ]+')
3131

32-
p_include = re.compile('^[\t ]*#[\t ]*include[\t ]+<([a-zA-Z0-9_/\.]+)')
32+
p_include = re.compile('^[\t ]*#[\t ]*include[\t ]+<([^>\n]+)>')
3333

3434
p_comment = re.compile(r'/\*([^*]+|\*+[^/])*(\*+/)?')
3535
p_cpp_comment = re.compile('//.*')

0 commit comments

Comments
 (0)