]> granicus.if.org Git - python/commitdiff
Issue #23330: h2py now supports arbitrary filenames in #include.
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 3 May 2015 12:35:14 +0000 (15:35 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Sun, 3 May 2015 12:35:14 +0000 (15:35 +0300)
Misc/NEWS
Tools/scripts/h2py.py

index b0a87a797e576f828e2f3ecdffa16bdf21fa91f4..b787c840625c6ce9c60feb50771e099997ea8e5f 100644 (file)
--- a/Misc/NEWS
+++ b/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?
 ===========================
 
index 4f871d90107f86c37cb5f5f0c66b6f8f2f4d4132..0967fc29d60141b4a655b731e4124ea8485c85a7 100755 (executable)
@@ -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('//.*')