third_party: Update waf to verison 2.0.23
[samba.git] / third_party / waf / waflib / extras / swig.py
index 740ab46d963a090c14fea596f004cd9c6fb3e9ac..967caeb5a82945ba8f337604dd62129f7688bc53 100644 (file)
@@ -17,7 +17,7 @@ tasks have to be added dynamically:
 
 SWIG_EXTS = ['.swig', '.i']
 
-re_module = re.compile(r'%module(?:\s*\(.*\))?\s+(.+)', re.M)
+re_module = re.compile(r'%module(?:\s*\(.*\))?\s+([^\r\n]+)', re.M)
 
 re_1 = re.compile(r'^%module.*?\s+([\w]+)\s*?$', re.M)
 re_2 = re.compile(r'[#%](?:include|import(?:\(module=".*"\))+|python(?:begin|code)) [<"](.*)[">]', re.M)