Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b9c04db

Browse files
Issue #23330: h2py now supports arbitrary filenames in #include.
1 parent 122f4b1 commit b9c04db

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
@@ -254,8 +254,11 @@ Documentation
254254
Tools/Demos
255255
-----------
256256

257+
- Issue #23330: h2py now supports arbitrary filenames in #include.
258+
257259
- Issue #24031: make patchcheck now supports git checkouts, too.
258260

261+
259262
What's New in Python 3.4.3?
260263
===========================
261264

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)