diff options
author | David Robillard <d@drobilla.net> | 2019-03-17 17:23:45 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-03-17 17:24:02 +0100 |
commit | e7a29b6b9b2f842314244c23c14d8f8f560904e1 (patch) | |
tree | d2dcbaf61f3749f73dc7a5e10d3fc6cd5e6e129a /extras/swig.py | |
parent | 8280f9de69f93624896b8875caf039066cac0314 (diff) | |
download | autowaf-e7a29b6b9b2f842314244c23c14d8f8f560904e1.tar.gz autowaf-e7a29b6b9b2f842314244c23c14d8f8f560904e1.tar.bz2 autowaf-e7a29b6b9b2f842314244c23c14d8f8f560904e1.zip |
Upgrade to waf 2.0.15
Diffstat (limited to 'extras/swig.py')
-rw-r--r-- | extras/swig.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extras/swig.py b/extras/swig.py index fd3d6d2..740ab46 100644 --- a/extras/swig.py +++ b/extras/swig.py @@ -17,10 +17,10 @@ tasks have to be added dynamically: SWIG_EXTS = ['.swig', '.i'] -re_module = re.compile('%module(?:\s*\(.*\))?\s+(.+)', re.M) +re_module = re.compile(r'%module(?:\s*\(.*\))?\s+(.+)', re.M) re_1 = re.compile(r'^%module.*?\s+([\w]+)\s*?$', re.M) -re_2 = re.compile('[#%]include [<"](.*)[">]', re.M) +re_2 = re.compile(r'[#%](?:include|import(?:\(module=".*"\))+|python(?:begin|code)) [<"](.*)[">]', re.M) class swig(Task.Task): color = 'BLUE' |