mirror of https://gitlab.com/ita1024/waf.git
swig: skip CR (\r) if present in module name
Handles presence of \r in module name (ie. DOS mode swig .i files) Should fix #2350
This commit is contained in:
parent
b3663173b5
commit
47778d9c8f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue