diff options
author | David Robillard <d@drobilla.net> | 2019-03-17 17:31:04 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-03-17 18:14:27 +0100 |
commit | a065b13b94e2f08eddbec9a64d97c653618e7207 (patch) | |
tree | f3727071015b4c8034c756d466d6f1d37d0b3683 /waflib/extras/swig.py | |
parent | d4a49fff9bbc610705b6292a069ae8fa72bb6e03 (diff) | |
parent | 06b859ac10d84580a21a912c75c37c73b9d65d2f (diff) | |
download | mda.lv2-master.tar.gz mda.lv2-master.tar.bz2 mda.lv2-master.zip |
Diffstat (limited to 'waflib/extras/swig.py')
-rw-r--r-- | waflib/extras/swig.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/waflib/extras/swig.py b/waflib/extras/swig.py index fd3d6d2..740ab46 100644 --- a/waflib/extras/swig.py +++ b/waflib/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' |