diff options
author | Pearu Peterson <pearu.peterson@gmail.com> | 2011-03-27 13:26:05 +0300 |
---|---|---|
committer | Pearu Peterson <pearu.peterson@gmail.com> | 2011-03-27 13:26:05 +0300 |
commit | 225f28c7cffc2ec4914cf34b9abf6c121cb990a8 (patch) | |
tree | 319a8c52d68a9351d6eec540982669cf918e42a3 /numpy/f2py | |
parent | f2419c0e5781b3e6b2c8380e71dbbc5ec40781e7 (diff) | |
download | numpy-225f28c7cffc2ec4914cf34b9abf6c121cb990a8.tar.gz |
BUG: f2py fix to scan literal strings with ! character, fixes ticket #1228
Diffstat (limited to 'numpy/f2py')
-rwxr-xr-x | numpy/f2py/crackfortran.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/f2py/crackfortran.py b/numpy/f2py/crackfortran.py index 6b707a5c5..7b9dc08ac 100755 --- a/numpy/f2py/crackfortran.py +++ b/numpy/f2py/crackfortran.py @@ -283,7 +283,7 @@ def readfortrancode(ffile,dowithline=show,istop=1): cont=0 finalline='' ll='' - commentline=re.compile(r'(?P<line>([^"]*"[^"]*"[^"!]*|[^\']*\'[^\']*\'[^\'!]*|[^!]*))!{1}(?P<rest>.*)') + commentline=re.compile(r'(?P<line>([^"]*["][^"]*["][^"!]*|[^\']*\'[^\']*\'[^\'!]*|[^!\'"]*))!{1}(?P<rest>.*)') includeline=re.compile(r'\s*include\s*(\'|")(?P<name>[^\'"]*)(\'|")',re.I) cont1=re.compile(r'(?P<line>.*)&\s*\Z') cont2=re.compile(r'(\s*&|)(?P<line>.*)') |